Update app.py
Browse files
app.py
CHANGED
|
@@ -174,9 +174,6 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 174 |
attached_file_path = file_name #os.path.join("downloads", file_name)
|
| 175 |
#os.makedirs("downloads", exist_ok=True)
|
| 176 |
|
| 177 |
-
with open(attached_file_path, "wb") as f:
|
| 178 |
-
f.write(response.content)
|
| 179 |
-
|
| 180 |
print(f"Fichier {file_name} téléchargé avec succès.")
|
| 181 |
except requests.exceptions.RequestException as e:
|
| 182 |
print(f"Erreur lors du téléchargement de {file_name} : {e}")
|
|
|
|
| 174 |
attached_file_path = file_name #os.path.join("downloads", file_name)
|
| 175 |
#os.makedirs("downloads", exist_ok=True)
|
| 176 |
|
|
|
|
|
|
|
|
|
|
| 177 |
print(f"Fichier {file_name} téléchargé avec succès.")
|
| 178 |
except requests.exceptions.RequestException as e:
|
| 179 |
print(f"Erreur lors du téléchargement de {file_name} : {e}")
|