kostasang commited on
Commit
f9a88e5
·
verified ·
1 Parent(s): 6cb5a60

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -108,9 +108,9 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
108
  for item in questions_data:
109
  task_id = item.get("task_id")
110
  question_text = item.get("question")
111
- question_file = item.get("file_name", None)
112
  # If question_file is not None, download it in /data folder
113
- if question_file is not None:
114
  download_file(
115
  url=download_url+task_id,
116
  local_filepath=os.path.join("data", question_file)
 
108
  for item in questions_data:
109
  task_id = item.get("task_id")
110
  question_text = item.get("question")
111
+ question_file = item.get("file_name")
112
  # If question_file is not None, download it in /data folder
113
+ if question_file != '':
114
  download_file(
115
  url=download_url+task_id,
116
  local_filepath=os.path.join("data", question_file)