Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ async def direct_regenerate(model, user_input, chatbot, character_name, characte
|
|
25 |
password=os.environ.get("MONGODB")
|
26 |
|
27 |
def init_database():
|
28 |
-
uri = f"mongodb+srv://
|
29 |
client = MongoClient(uri)
|
30 |
db = client["elo_ratings"]
|
31 |
collection = db["elo_ratings"]
|
|
|
25 |
password=os.environ.get("MONGODB")
|
26 |
|
27 |
def init_database():
|
28 |
+
uri = f"mongodb+srv://minh1228:{password}@cluster0.xb2urf6.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0"
|
29 |
client = MongoClient(uri)
|
30 |
db = client["elo_ratings"]
|
31 |
collection = db["elo_ratings"]
|