CindyDelage commited on
Commit
7b3dccd
·
verified ·
1 Parent(s): 70851da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -162,8 +162,8 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
162
  response.raise_for_status()
163
 
164
  # Sauvegarder le fichier dans un répertoire local temporaire ou dédié
165
- attached_file_path = os.path.join("downloads", file_name)
166
- os.makedirs("downloads", exist_ok=True)
167
 
168
  with open(attached_file_path, "wb") as f:
169
  f.write(response.content)
 
162
  response.raise_for_status()
163
 
164
  # Sauvegarder le fichier dans un répertoire local temporaire ou dédié
165
+ attached_file_path = file_name #os.path.join("downloads", file_name)
166
+ #os.makedirs("downloads", exist_ok=True)
167
 
168
  with open(attached_file_path, "wb") as f:
169
  f.write(response.content)