Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
santoshlite authored Jul 8, 2023
1 parent 0224df4 commit ca836e5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions py/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ def get_modified_paths(path, last_updated_formatted):

# Create a Redis pipeline
pipe2 = r.pipeline()

i = 0

for picture in modified_paths:
try:
image = Image.open(picture)
Expand All @@ -73,9 +72,6 @@ def get_modified_paths(path, last_updated_formatted):

# Queue the set operation in the pipeline
pipe2.set(generated_caption, picture)
print(f"{i} out of {len(modified_paths)}")
print(generated_caption, picture)
i += 1

# Execute all queued commands in the pipeline
pipe2.execute()
Expand Down

0 comments on commit ca836e5

Please sign in to comment.