Spaces:
Sleeping
Sleeping
Add debugging output to diagnose HF Spaces crash
Browse files
app.py
CHANGED
|
@@ -2,6 +2,22 @@
|
|
| 2 |
Hugging Face Spaces entry point
|
| 3 |
This file is required for HF Spaces deployment
|
| 4 |
"""
|
| 5 |
-
|
|
|
|
| 6 |
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
Hugging Face Spaces entry point
|
| 3 |
This file is required for HF Spaces deployment
|
| 4 |
"""
|
| 5 |
+
import os
|
| 6 |
+
import sys
|
| 7 |
|
| 8 |
+
print("Starting Crypto Index Tracker...")
|
| 9 |
+
print(f"Python version: {sys.version}")
|
| 10 |
+
print(f"Current directory: {os.getcwd()}")
|
| 11 |
+
print(f"Files in directory: {os.listdir('.')}")
|
| 12 |
+
|
| 13 |
+
try:
|
| 14 |
+
from index_interface_hf import *
|
| 15 |
+
print("Successfully imported index_interface_hf")
|
| 16 |
+
except Exception as e:
|
| 17 |
+
print(f"Error importing index_interface_hf: {e}")
|
| 18 |
+
import traceback
|
| 19 |
+
traceback.print_exc()
|
| 20 |
+
sys.exit(1)
|
| 21 |
+
|
| 22 |
+
# The app should auto-launch when imported with iface.launch()
|
| 23 |
+
print("App initialized, ready to serve...")
|