Update app.py
Browse files
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)
|