sreepathi-ravikumar commited on
Commit
e585a46
·
verified ·
1 Parent(s): 0dc302d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -1,10 +1,11 @@
1
- from flask import Flask, send_file
2
 
3
  app = Flask(__name__)
4
 
5
  @app.route('/get_video')
6
  def get_video():
7
- return send_file("https://videos.pexels.com/video-files/2098989/2098989-uhd_2560_1440_30fps.mp4", mimetype='video/mp4')
 
8
 
9
- if __name__ == '__main__':
10
- app.run(debug=True)
 
1
+ from flask import Flask, redirect
2
 
3
  app = Flask(__name__)
4
 
5
  @app.route('/get_video')
6
  def get_video():
7
+ # Redirect user to the video URL directly
8
+ return redirect("https://videos.pexels.com/video-files/2098989/2098989-uhd_2560_1440_30fps.mp4")
9
 
10
+ if __name__ = '__main__':
11
+ app.run(host='0.0.0.0', port=5000)