at1300 commited on
Commit
244d53d
·
verified ·
1 Parent(s): 67b94c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -176,6 +176,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
176
  for item in questions_data:
177
  task_id = item.get("task_id")
178
  question_text = item.get("question")
 
179
 
180
  task_answer_path = os.path.join(cache_dir, task_id, '.yaml')
181
  if os.path.exists(task_answer_path):
@@ -187,7 +188,6 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
187
  submitted_answer = task_answer.get("submitted_answer")
188
  except Exception as e:
189
  print(f"Existing answer for task {task_id} is invalid.")
190
- submitted_answer = None
191
 
192
  attached_file = item.get("file_name")
193
  if attached_file != "":
 
176
  for item in questions_data:
177
  task_id = item.get("task_id")
178
  question_text = item.get("question")
179
+ submitted_answer = None
180
 
181
  task_answer_path = os.path.join(cache_dir, task_id, '.yaml')
182
  if os.path.exists(task_answer_path):
 
188
  submitted_answer = task_answer.get("submitted_answer")
189
  except Exception as e:
190
  print(f"Existing answer for task {task_id} is invalid.")
 
191
 
192
  attached_file = item.get("file_name")
193
  if attached_file != "":