sreepathi-ravikumar commited on
Commit
f3bf338
·
verified ·
1 Parent(s): d443e19

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -1,4 +1,4 @@
1
- from flask import Flask, request, jsonify, Response
2
  from flask_cors import CORS
3
  import time
4
  from text2generation import generate_long_answer # Your own function
@@ -26,6 +26,11 @@ def ask_question():
26
  except Exception as e:
27
  return jsonify({"error": str(e)}), 500
28
 
 
 
 
 
 
29
 
30
  if __name__ == '__main__':
31
  app.run(host='0.0.0.0', port=7860)
 
1
+ from flask import Flask, request, jsonify, Response,redirect
2
  from flask_cors import CORS
3
  import time
4
  from text2generation import generate_long_answer # Your own function
 
26
  except Exception as e:
27
  return jsonify({"error": str(e)}), 500
28
 
29
+ @app.route('/get_video')
30
+ def get_video():
31
+ # Redirect user to the video URL directly
32
+ return redirect("https://videos.pexels.com/video-files/2098989/2098989-uhd_2560_1440_30fps.mp4")
33
+
34
 
35
  if __name__ == '__main__':
36
  app.run(host='0.0.0.0', port=7860)