Spaces:
Sleeping
Sleeping
Update conversation_logic.py
Browse files- conversation_logic.py +7 -2
conversation_logic.py
CHANGED
|
@@ -384,9 +384,14 @@ def generate_response(
|
|
| 384 |
question_category=question_category,
|
| 385 |
question_difficulty=question_difficulty,
|
| 386 |
chat_history=chat_history,
|
| 387 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 388 |
|
| 389 |
-
|
|
|
|
| 390 |
|
| 391 |
visible_user_text = ctx.visible_user_text
|
| 392 |
question_block = ctx.combined_question_block
|
|
|
|
| 384 |
question_category=question_category,
|
| 385 |
question_difficulty=question_difficulty,
|
| 386 |
chat_history=chat_history,
|
| 387 |
+
)
|
| 388 |
+
|
| 389 |
+
ctx.retrieval_context = retrieval_context
|
| 390 |
+
|
| 391 |
+
solver_input = question_text.strip() if question_text.strip() else raw_user_text.strip()
|
| 392 |
|
| 393 |
+
if is_quant_question(solver_input):
|
| 394 |
+
return solve_quant(solver_input, help_mode)
|
| 395 |
|
| 396 |
visible_user_text = ctx.visible_user_text
|
| 397 |
question_block = ctx.combined_question_block
|