Spaces:
Runtime error
Runtime error
Fix bug: passed question was the standalone one
Browse files
utils.py
CHANGED
@@ -89,7 +89,7 @@ def ask_query(
|
|
89 |
else:
|
90 |
question = get_standalone_question(msg, message_history, prompt_q)
|
91 |
context = get_context(question)
|
92 |
-
answer = get_answer(context, message_history,
|
93 |
|
94 |
message_history.append({'role': 'assistant', 'content': answer})
|
95 |
chat_history.append([msg, answer])
|
|
|
89 |
else:
|
90 |
question = get_standalone_question(msg, message_history, prompt_q)
|
91 |
context = get_context(question)
|
92 |
+
answer = get_answer(context, message_history, msg, prompt_m)
|
93 |
|
94 |
message_history.append({'role': 'assistant', 'content': answer})
|
95 |
chat_history.append([msg, answer])
|