Spaces:
Runtime error
Runtime error
Update config.py
Browse files
config.py
CHANGED
|
@@ -35,16 +35,15 @@ db = get_mongo_client()["cps_db"]
|
|
| 35 |
users_collection = db["users"]
|
| 36 |
patients_collection = db["patients"]
|
| 37 |
analysis_collection = db["patient_analysis_results"]
|
|
|
|
| 38 |
alerts_collection = db["clinical_alerts"]
|
| 39 |
-
notifications_collection = db["notifications"]
|
| 40 |
logger.info("📡 Connected to MongoDB synchronously")
|
| 41 |
|
| 42 |
# JWT settings
|
| 43 |
SECRET_KEY = os.getenv("SECRET_KEY", "your-secret-key")
|
| 44 |
ALGORITHM = "HS256"
|
| 45 |
|
| 46 |
-
|
| 47 |
-
|
| 48 |
# Determine WebSocket URL based on environment
|
| 49 |
if os.getenv('SPACES') == '1':
|
| 50 |
# Hugging Face Spaces production
|
|
|
|
| 35 |
users_collection = db["users"]
|
| 36 |
patients_collection = db["patients"]
|
| 37 |
analysis_collection = db["patient_analysis_results"]
|
| 38 |
+
chats_collection = db["chats"] # New collection for chats
|
| 39 |
alerts_collection = db["clinical_alerts"]
|
| 40 |
+
notifications_collection = db["notifications"]
|
| 41 |
logger.info("📡 Connected to MongoDB synchronously")
|
| 42 |
|
| 43 |
# JWT settings
|
| 44 |
SECRET_KEY = os.getenv("SECRET_KEY", "your-secret-key")
|
| 45 |
ALGORITHM = "HS256"
|
| 46 |
|
|
|
|
|
|
|
| 47 |
# Determine WebSocket URL based on environment
|
| 48 |
if os.getenv('SPACES') == '1':
|
| 49 |
# Hugging Face Spaces production
|