Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,8 +34,14 @@ username = 'laiba'
|
|
| 34 |
password = 'VRwiQ8padD_gN8t'
|
| 35 |
encoded_username = urllib.parse.quote_plus(username)
|
| 36 |
encoded_password = urllib.parse.quote_plus(password)
|
| 37 |
-
MONGODB_ATLAS_CLUSTER_URI = f'mongodb+srv://{encoded_username}:{encoded_password}@comsatsbot.04y7a.mongodb.net/'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
client = MongoClient(MONGODB_ATLAS_CLUSTER_URI)
|
|
|
|
| 39 |
db = client.get_database('chat_db') # Assume this is your database
|
| 40 |
chats_collection = db.get_collection('chats') # Collection to store chats
|
| 41 |
paths = ['FYP Supervisor Feedback.csv', 'urdu_data.csv', 'english_data.csv']
|
|
|
|
| 34 |
password = 'VRwiQ8padD_gN8t'
|
| 35 |
encoded_username = urllib.parse.quote_plus(username)
|
| 36 |
encoded_password = urllib.parse.quote_plus(password)
|
| 37 |
+
#MONGODB_ATLAS_CLUSTER_URI = f'mongodb+srv://{encoded_username}:{encoded_password}@comsatsbot.04y7a.mongodb.net/'
|
| 38 |
+
#client = MongoClient(MONGODB_ATLAS_CLUSTER_URI)
|
| 39 |
+
MONGODB_ATLAS_CLUSTER_URI = (
|
| 40 |
+
f"mongodb+srv://{encoded_username}:{encoded_password}"
|
| 41 |
+
f"@cluster0.04y7a.mongodb.net/comsatsbot"
|
| 42 |
+
)
|
| 43 |
client = MongoClient(MONGODB_ATLAS_CLUSTER_URI)
|
| 44 |
+
|
| 45 |
db = client.get_database('chat_db') # Assume this is your database
|
| 46 |
chats_collection = db.get_collection('chats') # Collection to store chats
|
| 47 |
paths = ['FYP Supervisor Feedback.csv', 'urdu_data.csv', 'english_data.csv']
|