Spaces:
Sleeping
Sleeping
Update conversation_logic.py
Browse files- conversation_logic.py +12 -0
conversation_logic.py
CHANGED
|
@@ -412,6 +412,18 @@ def generate_response(
|
|
| 412 |
result.reply = format_reply(result.reply, tone, verbosity, transparency, help_mode)
|
| 413 |
return result
|
| 414 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 415 |
if is_quant_question(visible_user_text):
|
| 416 |
result = solve_quant(visible_user_text, help_mode)
|
| 417 |
result.reply = format_reply(result.reply, tone, verbosity, transparency, help_mode)
|
|
|
|
| 412 |
result.reply = format_reply(result.reply, tone, verbosity, transparency, help_mode)
|
| 413 |
return result
|
| 414 |
|
| 415 |
+
if question_block:
|
| 416 |
+
result = solve_quant(question_block, help_mode)
|
| 417 |
+
if result.solved or result.answer_value or result.answer_letter:
|
| 418 |
+
result.reply = format_reply(result.reply, tone, verbosity, transparency, help_mode)
|
| 419 |
+
return result
|
| 420 |
+
|
| 421 |
+
if ctx.question_text:
|
| 422 |
+
result = solve_quant(ctx.question_text, help_mode)
|
| 423 |
+
if result.solved or result.answer_value or result.answer_letter:
|
| 424 |
+
result.reply = format_reply(result.reply, tone, verbosity, transparency, help_mode)
|
| 425 |
+
return result
|
| 426 |
+
|
| 427 |
if is_quant_question(visible_user_text):
|
| 428 |
result = solve_quant(visible_user_text, help_mode)
|
| 429 |
result.reply = format_reply(result.reply, tone, verbosity, transparency, help_mode)
|