Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1570,7 +1570,7 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
| 1570 |
local_file_path = filename
|
| 1571 |
|
| 1572 |
with open(local_file_path, 'wb') as f:
|
| 1573 |
-
for chunk in
|
| 1574 |
f.write(chunk)
|
| 1575 |
|
| 1576 |
file_size = os.path.getsize(local_file_path)
|
|
|
|
| 1570 |
local_file_path = filename
|
| 1571 |
|
| 1572 |
with open(local_file_path, 'wb') as f:
|
| 1573 |
+
for chunk in file_response.iter_content(chunk_size=8192):
|
| 1574 |
f.write(chunk)
|
| 1575 |
|
| 1576 |
file_size = os.path.getsize(local_file_path)
|