Update app.py
Browse files
app.py
CHANGED
@@ -68,6 +68,7 @@ def chat_with_ai(user_input, chat_history):
|
|
68 |
complete_response = str(response) + "\n\n" + "references:" + str(ref) + "\n\n" + "pages:" + str(pages)
|
69 |
if ref !=[] or pages!=[]:
|
70 |
chat_history.append((user_input, complete_response))
|
|
|
71 |
elif ref==[] or pages==[]:
|
72 |
chat_history.append((user_input,str(response)))
|
73 |
|
|
|
68 |
complete_response = str(response) + "\n\n" + "references:" + str(ref) + "\n\n" + "pages:" + str(pages)
|
69 |
if ref !=[] or pages!=[]:
|
70 |
chat_history.append((user_input, complete_response))
|
71 |
+
ref = []
|
72 |
elif ref==[] or pages==[]:
|
73 |
chat_history.append((user_input,str(response)))
|
74 |
|