burtenshaw commited on
Commit
768c800
·
1 Parent(s): ce886a0

return to full answers error still the same

Browse files
Files changed (2) hide show
  1. app.py +0 -10
  2. certificates +1 -0
app.py CHANGED
@@ -125,16 +125,6 @@ def push_results_to_hub(user_answers, token: gr.OAuthToken | None):
125
  submission_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
126
 
127
  # filter down user answers to only include first character of the question and the answer
128
- user_answers = [
129
- {
130
- "question": answer["question"][:1],
131
- "selected_answer": answer["selected_answer"][:1],
132
- "is_correct": answer["is_correct"],
133
- "correct_answer": answer["correct_answer"][:1],
134
- "correct_reference": answer["correct_reference"],
135
- }
136
- for answer in user_answers
137
- ]
138
  new_ds = Dataset.from_list(user_answers)
139
  new_ds = new_ds.map(
140
  lambda x: {
 
125
  submission_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
126
 
127
  # filter down user answers to only include first character of the question and the answer
 
 
 
 
 
 
 
 
 
 
128
  new_ds = Dataset.from_list(user_answers)
129
  new_ds = new_ds.map(
130
  lambda x: {
certificates ADDED
@@ -0,0 +1 @@
 
 
1
+ Subproject commit f2144f06010fc4eeba5fcc2368620376b49d312e