Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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:")
|