Spaces:
Sleeping
Sleeping
update
Browse files
app.py
CHANGED
@@ -46,8 +46,21 @@ zip_file_path = hf_hub_download(
|
|
46 |
|
47 |
print(f"zip_file_path: {zip_file_path}")
|
48 |
|
49 |
-
|
50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
|
52 |
NUMBER_OF_IMAGES = 30
|
53 |
intro_screen = Image.open("./images/intro.jpg")
|
|
|
46 |
|
47 |
print(f"zip_file_path: {zip_file_path}")
|
48 |
|
49 |
+
# Check if the file exists and print the file size
|
50 |
+
if os.path.exists(zip_file_path):
|
51 |
+
print(f"File size: {os.path.getsize(zip_file_path)} bytes")
|
52 |
+
else:
|
53 |
+
print("File does not exist.")
|
54 |
+
|
55 |
+
# Attempt to extract the zip file
|
56 |
+
try:
|
57 |
+
with zipfile.ZipFile(zip_file_path, "r") as zip_ref:
|
58 |
+
zip_ref.extractall("./")
|
59 |
+
print("Extraction successful.")
|
60 |
+
except Exception as e:
|
61 |
+
print(f"Failed to extract the zip file: {e}")
|
62 |
+
|
63 |
+
|
64 |
|
65 |
NUMBER_OF_IMAGES = 30
|
66 |
intro_screen = Image.open("./images/intro.jpg")
|