Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,6 +15,7 @@ def health_check():
|
|
| 15 |
@app.route('/ask', methods=['POST'])
|
| 16 |
def ask_question():
|
| 17 |
try:
|
|
|
|
| 18 |
data = request.get_json()
|
| 19 |
question = data.get('question', '').strip()
|
| 20 |
|
|
@@ -30,6 +31,7 @@ def ask_question():
|
|
| 30 |
|
| 31 |
@app.route('/get_video')
|
| 32 |
def get_video():
|
|
|
|
| 33 |
print(temp_data['answered'])
|
| 34 |
return redirect("https://videos.pexels.com/video-files/3052446/3052446-hd_1920_1080_30fps.mp4")
|
| 35 |
|
|
|
|
| 15 |
@app.route('/ask', methods=['POST'])
|
| 16 |
def ask_question():
|
| 17 |
try:
|
| 18 |
+
global temp_data
|
| 19 |
data = request.get_json()
|
| 20 |
question = data.get('question', '').strip()
|
| 21 |
|
|
|
|
| 31 |
|
| 32 |
@app.route('/get_video')
|
| 33 |
def get_video():
|
| 34 |
+
global temp_data
|
| 35 |
print(temp_data['answered'])
|
| 36 |
return redirect("https://videos.pexels.com/video-files/3052446/3052446-hd_1920_1080_30fps.mp4")
|
| 37 |
|