Spaces:
Runtime error
Runtime error
File size: 349 Bytes
85d52f6 50aeac3 85d52f6 50aeac3 85d52f6 |
1 2 3 4 5 6 7 8 9 10 |
from motor.motor_asyncio import AsyncIOMotorClient
import os
MONGODB_URI = os.getenv("MONGODB_URI") # Make sure it's added to your Hugging Face Space secrets
client = AsyncIOMotorClient(MONGODB_URI)
db = client["cps_db"] # Adjust if your database name is different
patients_collection = db["patients"]
results_collection = db["txagent_results"]
|