Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -86,12 +86,12 @@ def upload():
|
|
| 86 |
print(f"❌ analyze_video failed: {e}")
|
| 87 |
result_image = "placeholder.jpg"
|
| 88 |
|
| 89 |
-
return redirect(url_for(
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
))
|
| 95 |
|
| 96 |
@app.route('/uploads/<path:filename>')
|
| 97 |
def uploaded_file(filename):
|
|
|
|
| 86 |
print(f"❌ analyze_video failed: {e}")
|
| 87 |
result_image = "placeholder.jpg"
|
| 88 |
|
| 89 |
+
return redirect(url_for(
|
| 90 |
+
'index',
|
| 91 |
+
video_filename=filename,
|
| 92 |
+
result_image=result_image,
|
| 93 |
+
frame_images="|".join(frame_images)
|
| 94 |
+
))
|
| 95 |
|
| 96 |
@app.route('/uploads/<path:filename>')
|
| 97 |
def uploaded_file(filename):
|