Spaces:
Sleeping
Sleeping
fixing source return
Browse files
app.py
CHANGED
|
@@ -96,11 +96,11 @@ def nishauri(question, conversation_history: list[str]):
|
|
| 96 |
)
|
| 97 |
reply_to_user = completion.choices[0].message.content
|
| 98 |
conversation_history.append({"user": question, "chatbot": reply_to_user})
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
return reply_to_user, source1return, source2return, source3return, source4return, source5return, conversation_history
|
| 105 |
|
| 106 |
# Detect language and translate if needed
|
|
|
|
| 96 |
)
|
| 97 |
reply_to_user = completion.choices[0].message.content
|
| 98 |
conversation_history.append({"user": question, "chatbot": reply_to_user})
|
| 99 |
+
source1return = ""
|
| 100 |
+
source2return = ""
|
| 101 |
+
source3return = ""
|
| 102 |
+
source4return = ""
|
| 103 |
+
source5return = ""
|
| 104 |
return reply_to_user, source1return, source2return, source3return, source4return, source5return, conversation_history
|
| 105 |
|
| 106 |
# Detect language and translate if needed
|