Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
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"
|
| 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)
|
|
|
|
| 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)
|