Spaces:
Runtime error
Runtime error
Greg Thompson
commited on
Commit
•
3363428
1
Parent(s):
d7df3e1
Update correct answer format
Browse files
mathtext_fastapi/conversation_manager.py
CHANGED
@@ -151,7 +151,8 @@ def return_next_conversational_state(context_data, user_message, contact_uuid):
|
|
151 |
print("user_message")
|
152 |
print(user_message)
|
153 |
|
154 |
-
math_quiz_state_machine.student_answer
|
|
|
155 |
messages = math_quiz_state_machine.validate_answer()
|
156 |
dump_encoded = pickle_and_encode_state_machine(math_quiz_state_machine)
|
157 |
SUPA.table('state_machines').update({
|
|
|
151 |
print("user_message")
|
152 |
print(user_message)
|
153 |
|
154 |
+
math_quiz_state_machine.student_answer = user_message
|
155 |
+
math_quiz_state_machine.correct_answer = str(math_quiz_state_machine.correct_answer)
|
156 |
messages = math_quiz_state_machine.validate_answer()
|
157 |
dump_encoded = pickle_and_encode_state_machine(math_quiz_state_machine)
|
158 |
SUPA.table('state_machines').update({
|