Spaces:
Sleeping
Sleeping
Update code
Browse files- dashboard.py +4 -0
dashboard.py
CHANGED
|
@@ -64,6 +64,10 @@ def ensure_db_exists():
|
|
| 64 |
print(" Make sure to upload telegram.db to the Dataset repo first.")
|
| 65 |
return False
|
| 66 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
# ==========================================
|
| 68 |
# AI CONFIGURATION
|
| 69 |
# Set via environment variables (e.g. in .env or hosting platform settings)
|
|
|
|
| 64 |
print(" Make sure to upload telegram.db to the Dataset repo first.")
|
| 65 |
return False
|
| 66 |
|
| 67 |
+
|
| 68 |
+
# Download DB on module import (for gunicorn)
|
| 69 |
+
ensure_db_exists()
|
| 70 |
+
|
| 71 |
# ==========================================
|
| 72 |
# AI CONFIGURATION
|
| 73 |
# Set via environment variables (e.g. in .env or hosting platform settings)
|