Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
fofr committed Aug 13, 2024
1 parent fbb94c3 commit 27f5c32
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ def predict(
def extract_images_from_zip(
self, image_zip_archive: Path, supported_image_types: tuple
):
# Unzip the archive and flatten the directory structure
with zipfile.ZipFile(image_zip_archive, "r") as zip_ref:
for file in zip_ref.namelist():
if (
Expand All @@ -164,7 +163,6 @@ def extract_images_from_zip(
with source, target:
shutil.copyfileobj(source, target)

# Print extracted files
print("Files extracted:")
for root, dirs, files in os.walk("/tmp/outputs"):
for f in files:
Expand Down

0 comments on commit 27f5c32

Please sign in to comment.