Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -654,11 +654,12 @@ def load_image_checklist(file):
|
|
654 |
current_index = 0
|
655 |
image_names = []
|
656 |
|
657 |
-
def unzip_images(zip_file_path, extract_to
|
658 |
if not os.path.exists(extract_to):
|
659 |
os.makedirs(extract_to)
|
660 |
-
|
661 |
-
|
|
|
662 |
|
663 |
|
664 |
def show_image(current_idx):
|
|
|
654 |
current_index = 0
|
655 |
image_names = []
|
656 |
|
657 |
+
def unzip_images(zip_file_path, extract_to):
|
658 |
if not os.path.exists(extract_to):
|
659 |
os.makedirs(extract_to)
|
660 |
+
with zipfile.ZipFile(zip_file_path, 'r') as zip_ref:
|
661 |
+
zip_ref.extractall(extract_to)
|
662 |
+
print("unzip successful")
|
663 |
|
664 |
|
665 |
def show_image(current_idx):
|