ouhenio commited on
Commit
87d70ef
·
verified ·
1 Parent(s): 6d086e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -57,7 +57,7 @@ async def update_validation_space_on_answer(response, type, timestamp):
57
  validation_record = {
58
  "question": record.fields["question"],
59
  # Use the first available response value - adjust this based on your actual response structure
60
- "answer": response.values[0] if hasattr(response, 'values') and response.values else str(response),
61
  }
62
 
63
  # Add the record to the validation space
 
57
  validation_record = {
58
  "question": record.fields["question"],
59
  # Use the first available response value - adjust this based on your actual response structure
60
+ "answer": response.values["text"],
61
  }
62
 
63
  # Add the record to the validation space