Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -414,8 +414,8 @@ def smart_join_router(prompt: str) -> str:
|
|
| 414 |
|
| 415 |
def init_mongo_agent(json_path):
|
| 416 |
global agent_executor, client, mongo_db, db_mode
|
| 417 |
-
|
| 418 |
-
client = MongoClient("mongodb://
|
| 419 |
mongo_db = client['uploaded_mongo']
|
| 420 |
with open(json_path, 'r', encoding='utf-8') as f:
|
| 421 |
data = json_util.loads(f.read())
|
|
|
|
| 414 |
|
| 415 |
def init_mongo_agent(json_path):
|
| 416 |
global agent_executor, client, mongo_db, db_mode
|
| 417 |
+
# client = MongoClient("mongodb://localhost:27017/")
|
| 418 |
+
client = MongoClient("mongodb+srv://dixitmwa:DixitWa%40123!@cluster0.qiysaz9.mongodb.net/")
|
| 419 |
mongo_db = client['uploaded_mongo']
|
| 420 |
with open(json_path, 'r', encoding='utf-8') as f:
|
| 421 |
data = json_util.loads(f.read())
|