Skip to content

Commit

Permalink
fix: replace task index with time
Browse files Browse the repository at this point in the history
  • Loading branch information
steveoh committed Feb 22, 2023
1 parent 2817371 commit e5440f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion row.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,9 @@ def ocr_all_mosaics(inputs):

TASK_RESULTS.append([object_name, result.document.text])

upload_results(TASK_RESULTS, inputs.output_location, f"task-{inputs.task_index}", inputs.job_name)
upload_results(
TASK_RESULTS, inputs.output_location, f"ocr-{datetime.now().strftime('%Y-%m-%d-%H-%M-%S')}", inputs.job_name
)

i = 0
with index.open(mode="r+", encoding="utf-8") as data:
Expand Down

0 comments on commit e5440f9

Please sign in to comment.