Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -372,7 +372,7 @@ def image_to_video():
|
|
372 |
f.write(video_data)
|
373 |
|
374 |
# Send the video as an HTTP response
|
375 |
-
|
376 |
io.BytesIO(video_data),
|
377 |
mimetype='video/mp4',
|
378 |
as_attachment=True,
|
@@ -388,7 +388,7 @@ def image_to_video():
|
|
388 |
os.remove(image_path)
|
389 |
print(f"Deleted temporary image: {image_path}")
|
390 |
|
391 |
-
return response
|
392 |
|
393 |
if __name__ == '__main__':
|
394 |
app.run(host='0.0.0.0', port=7860, debug=True) # Removed 'debug=True'
|
|
|
372 |
f.write(video_data)
|
373 |
|
374 |
# Send the video as an HTTP response
|
375 |
+
return send_file(
|
376 |
io.BytesIO(video_data),
|
377 |
mimetype='video/mp4',
|
378 |
as_attachment=True,
|
|
|
388 |
os.remove(image_path)
|
389 |
print(f"Deleted temporary image: {image_path}")
|
390 |
|
391 |
+
# return response
|
392 |
|
393 |
if __name__ == '__main__':
|
394 |
app.run(host='0.0.0.0', port=7860, debug=True) # Removed 'debug=True'
|