Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -301,7 +301,7 @@ def download_video(video_url, filename):
|
|
301 |
response.raise_for_status()
|
302 |
with open(filename, 'wb') as f:
|
303 |
for chunk in response.iter_content(chunk_size=8192):
|
304 |
-
f.write
|
305 |
print(f"Video downloaded successfully to: {filename}")
|
306 |
return filename
|
307 |
except Exception as e:
|
|
|
301 |
response.raise_for_status()
|
302 |
with open(filename, 'wb') as f:
|
303 |
for chunk in response.iter_content(chunk_size=8192):
|
304 |
+
f.write(chunk)
|
305 |
print(f"Video downloaded successfully to: {filename}")
|
306 |
return filename
|
307 |
except Exception as e:
|