Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -33,6 +33,7 @@ def download_video(url):
|
|
33 |
for chunk in response.iter_content(chunk_size=8192):
|
34 |
if chunk:
|
35 |
file.write(chunk)
|
|
|
36 |
print(f"Downloaded successfully")
|
37 |
return "video.mp4"
|
38 |
|
|
|
33 |
for chunk in response.iter_content(chunk_size=8192):
|
34 |
if chunk:
|
35 |
file.write(chunk)
|
36 |
+
file.close()
|
37 |
print(f"Downloaded successfully")
|
38 |
return "video.mp4"
|
39 |
|