gosign commited on
Commit
6f88071
·
verified ·
1 Parent(s): 8f48ac3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- response = send_file(
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'