Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -56,11 +56,6 @@ async def update_validation_space_on_answer(response, type, timestamp):
|
|
56 |
response_dict = response.to_dict()
|
57 |
print("response dict", response_dict)
|
58 |
answer = response_dict["values"]['text']['value']
|
59 |
-
# if hasattr(response, 'values') and 'text' in response.values:
|
60 |
-
# if isinstance(response.values['text'], dict) and 'value' in response.values['text']:
|
61 |
-
# response_value = response.values['text']['value']
|
62 |
-
# else:
|
63 |
-
# response_value = str(response.values['text'])
|
64 |
|
65 |
# Create a validation record with the correct attribute
|
66 |
# Instead of response.value, we need to find the correct attribute
|
|
|
56 |
response_dict = response.to_dict()
|
57 |
print("response dict", response_dict)
|
58 |
answer = response_dict["values"]['text']['value']
|
|
|
|
|
|
|
|
|
|
|
59 |
|
60 |
# Create a validation record with the correct attribute
|
61 |
# Instead of response.value, we need to find the correct attribute
|