on1onmangoes commited on
Commit
aa23802
·
verified ·
1 Parent(s): 7a5ddde

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -38,7 +38,7 @@ def stream_chat_with_rag(
38
  for user_input, assistant_response in history:
39
  conversation += f"User: {user_input}\nAssistant: {assistant_response}\n"
40
  conversation += f"User: {message}\nAssistant:"
41
-
42
  answer, relevant_docs = client.predict(question=question, api_name="/answer_with_rag")
43
  # debug 092624
44
  print("The Answer in stream_chat_with_rag:")
 
38
  for user_input, assistant_response in history:
39
  conversation += f"User: {user_input}\nAssistant: {assistant_response}\n"
40
  conversation += f"User: {message}\nAssistant:"
41
+ question = message
42
  answer, relevant_docs = client.predict(question=question, api_name="/answer_with_rag")
43
  # debug 092624
44
  print("The Answer in stream_chat_with_rag:")