Skip to content

Commit

Permalink
formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
jaegeral committed Sep 18, 2024
1 parent 530732a commit 74a74d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions timesketch/api/v1/resources/nl2q.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,9 @@ def post(self, sketch_id):
llm = manager.LLMManager().get_provider(llm_provider)()
except Exception as e: # pylint: disable=broad-except
logger.error("Error LLM Provider: {}".format(e))
result_schema[
"error"
] = "Error loading LLM Provider. Please try again later!"
result_schema["error"] = (
"Error loading LLM Provider. Please try again later!"
)
return jsonify(result_schema)

try:
Expand Down
6 changes: 3 additions & 3 deletions timesketch/lib/dfiq.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,9 +322,9 @@ def _load_yaml_files_by_type(self, dfiq_type, yaml_data_path=None):
component_from_yaml
)
if dfiq_object:
component_dict[
component_from_yaml["id"]
] = self._convert_yaml_object_to_dfiq_component(component_from_yaml)
component_dict[component_from_yaml["id"]] = (
self._convert_yaml_object_to_dfiq_component(component_from_yaml)
)
return component_dict

def _load_dfiq_items_from_yaml(self):
Expand Down

0 comments on commit 74a74d5

Please sign in to comment.