Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ username = 'laiba'
|
|
31 |
password = 'VRwiQ8padD_gN8t'
|
32 |
encoded_username = urllib.parse.quote_plus(username)
|
33 |
encoded_password = urllib.parse.quote_plus(password)
|
34 |
-
MONGODB_ATLAS_CLUSTER_URI = f'mongodb+srv://{encoded_username}:{encoded_password}@comsatsbot.
|
35 |
client = MongoClient(MONGODB_ATLAS_CLUSTER_URI)
|
36 |
db = client.get_database('chat_db') # Assume this is your database
|
37 |
chats_collection = db.get_collection('chats') # Collection to store chats
|
|
|
31 |
password = 'VRwiQ8padD_gN8t'
|
32 |
encoded_username = urllib.parse.quote_plus(username)
|
33 |
encoded_password = urllib.parse.quote_plus(password)
|
34 |
+
MONGODB_ATLAS_CLUSTER_URI = f'mongodb+srv://{encoded_username}:{encoded_password}@comsatsbot.04y7a.mongodb.net/'
|
35 |
client = MongoClient(MONGODB_ATLAS_CLUSTER_URI)
|
36 |
db = client.get_database('chat_db') # Assume this is your database
|
37 |
chats_collection = db.get_collection('chats') # Collection to store chats
|