Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,9 @@ db = client.get_database('chat_db') # Assume this is your database
|
|
39 |
chats_collection = db.get_collection('chats') # Collection to store chats
|
40 |
paths = ['FYP Supervisor Feedback.csv', 'urdu_data.csv', 'english_data.csv']
|
41 |
|
42 |
-
chatbot = Comsatsbot(hf, llm, api_keys, chats_collection, paths)
|
|
|
|
|
43 |
|
44 |
# Endpoint for creating a new chat ID
|
45 |
@app.post("/get_new_chat")
|
|
|
39 |
chats_collection = db.get_collection('chats') # Collection to store chats
|
40 |
paths = ['FYP Supervisor Feedback.csv', 'urdu_data.csv', 'english_data.csv']
|
41 |
|
42 |
+
#chatbot = Comsatsbot(hf, llm, api_keys, chats_collection, paths)
|
43 |
+
chatbot = Comsatsbot(hf, llm, api_keys, chats_collection, index_path=paths[0])
|
44 |
+
|
45 |
|
46 |
# Endpoint for creating a new chat ID
|
47 |
@app.post("/get_new_chat")
|