Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Add version debug logging and pin huggingface_hub==0.24.0
Browse files- app.py +13 -0
- requirements.txt +1 -1
app.py
CHANGED
|
@@ -9,6 +9,19 @@ HF Spaces automatically runs app.py and calls demo.launch().
|
|
| 9 |
import os
|
| 10 |
import sys
|
| 11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
# Add the repo root to path so imports work
|
| 13 |
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
| 14 |
|
|
|
|
| 9 |
import os
|
| 10 |
import sys
|
| 11 |
|
| 12 |
+
# Debug: print versions before anything else
|
| 13 |
+
try:
|
| 14 |
+
import gradio
|
| 15 |
+
print(f"Gradio version: {gradio.__version__}")
|
| 16 |
+
except Exception as e:
|
| 17 |
+
print(f"Could not import gradio: {e}")
|
| 18 |
+
|
| 19 |
+
try:
|
| 20 |
+
import huggingface_hub
|
| 21 |
+
print(f"HuggingFace Hub version: {huggingface_hub.__version__}")
|
| 22 |
+
except Exception as e:
|
| 23 |
+
print(f"Could not import huggingface_hub: {e}")
|
| 24 |
+
|
| 25 |
# Add the repo root to path so imports work
|
| 26 |
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
| 27 |
|
requirements.txt
CHANGED
|
@@ -8,4 +8,4 @@ plotly>=5.0
|
|
| 8 |
Pillow>=9.0
|
| 9 |
pynauty>=2.0
|
| 10 |
gradio==5.6.0
|
| 11 |
-
huggingface_hub
|
|
|
|
| 8 |
Pillow>=9.0
|
| 9 |
pynauty>=2.0
|
| 10 |
gradio==5.6.0
|
| 11 |
+
huggingface_hub==0.24.0
|