at1300 commited on
Commit
2a83893
·
verified ·
1 Parent(s): 5c7480d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -4
app.py CHANGED
@@ -180,17 +180,13 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
180
  if chunk:
181
  f.write(chunk)
182
  print(f"File downloaded and cached: {local_file_path}")
183
- return local_file_path
184
 
185
  except requests.exceptions.HTTPError as e:
186
  print(f"HTTP error downloading {download_url}: {e}")
187
- return None
188
  except requests.exceptions.RequestException as e:
189
  print(f"Error downloading {download_url}: {e}")
190
- return None
191
  except OSError as e:
192
  print(f"Error saving file to {local_file_path}: {e}")
193
- return None
194
 
195
  if not task_id or question_text is None:
196
  print(f"Skipping item with missing task_id or question: {item}")
 
180
  if chunk:
181
  f.write(chunk)
182
  print(f"File downloaded and cached: {local_file_path}")
 
183
 
184
  except requests.exceptions.HTTPError as e:
185
  print(f"HTTP error downloading {download_url}: {e}")
 
186
  except requests.exceptions.RequestException as e:
187
  print(f"Error downloading {download_url}: {e}")
 
188
  except OSError as e:
189
  print(f"Error saving file to {local_file_path}: {e}")
 
190
 
191
  if not task_id or question_text is None:
192
  print(f"Skipping item with missing task_id or question: {item}")