anasmkh commited on
Commit
16fbcf6
·
verified ·
1 Parent(s): 67c6e4d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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