Skip to content

Commit

Permalink
Updating indents.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark committed Nov 14, 2023
1 parent bd791fe commit 9761db7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cli/text2embeddings.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,11 @@ def run_as_cli(
task_output_path = os.path.join(output_dir, task.document_id + ".json")

try:
write_json_to_s3(task.model_dump_json(), task_output_path) if s3 else Path(
task_output_path
).write_text(task.model_dump_json())
write_json_to_s3(
task.model_dump_json(indent=2), task_output_path
) if s3 else Path(task_output_path).write_text(
task.model_dump_json(indent=2)
)
except Exception as e:
logger.info(
"Failed to write embeddings data to s3.",
Expand Down

0 comments on commit 9761db7

Please sign in to comment.