Spaces:
Sleeping
Sleeping
soyleyicicem
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ client = AzureOpenAI(azure_endpoint = openai.azure_endpoint,
|
|
25 |
api_version=openai.api_version)
|
26 |
|
27 |
obj_qdrant = QdrantClientInitializer()
|
28 |
-
|
29 |
obj_loader = PDFLoader()
|
30 |
|
31 |
# -----
|
@@ -336,7 +336,7 @@ def chat(question, manual, history, liked):
|
|
336 |
def save_last_interaction(feedback):
|
337 |
if last_interaction.value:
|
338 |
DatabaseOperations.save_user_history_demo(
|
339 |
-
|
340 |
"USER_COLLECTION_EMBED3_v2",
|
341 |
last_interaction.value["question"],
|
342 |
last_interaction.value["response"],
|
|
|
25 |
api_version=openai.api_version)
|
26 |
|
27 |
obj_qdrant = QdrantClientInitializer()
|
28 |
+
qclient = obj_qdrant.initialize_db()
|
29 |
obj_loader = PDFLoader()
|
30 |
|
31 |
# -----
|
|
|
336 |
def save_last_interaction(feedback):
|
337 |
if last_interaction.value:
|
338 |
DatabaseOperations.save_user_history_demo(
|
339 |
+
qclient,
|
340 |
"USER_COLLECTION_EMBED3_v2",
|
341 |
last_interaction.value["question"],
|
342 |
last_interaction.value["response"],
|