Skip to content

Commit

Permalink
fix: upload multiple images
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmerrell committed May 17, 2023
1 parent 9b59658 commit b6bd813
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rp_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ def run(job):

job_output = []
for index, img_path in enumerate(img_paths):
image_url = upload_file_to_bucket(job['id'], img_path, index)
file_name = f"{job['id']}_{index}.png"
image_url = upload_file_to_bucket(file_name, img_path)

job_output.append({
"image": image_url,
Expand Down

0 comments on commit b6bd813

Please sign in to comment.