rottg commited on
Commit
b82647d
·
1 Parent(s): 88ad9bb

Update code

Browse files
Files changed (1) hide show
  1. 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)