Spaces:
Sleeping
Sleeping
Commit
·
138df91
1
Parent(s):
68a881b
Add debugging to list all downloaded files and identify naming issues
Browse files
app.py
CHANGED
|
@@ -51,6 +51,13 @@ def ensure_weights():
|
|
| 51 |
import time
|
| 52 |
time.sleep(2)
|
| 53 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
# Verify critical files exist
|
| 55 |
for file_path in need:
|
| 56 |
if not os.path.exists(file_path):
|
|
|
|
| 51 |
import time
|
| 52 |
time.sleep(2)
|
| 53 |
|
| 54 |
+
# Debug: List all files in pretrained_models directory
|
| 55 |
+
if os.path.exists("pretrained_models"):
|
| 56 |
+
logger.info("Files in pretrained_models directory:")
|
| 57 |
+
for root, dirs, files in os.walk("pretrained_models"):
|
| 58 |
+
for file in files:
|
| 59 |
+
logger.info(" %s", os.path.join(root, file))
|
| 60 |
+
|
| 61 |
# Verify critical files exist
|
| 62 |
for file_path in need:
|
| 63 |
if not os.path.exists(file_path):
|