Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -80,11 +80,9 @@ def upload():
|
|
| 80 |
result_data = analyze_video(filepath, filename, session['user_id'])
|
| 81 |
result_image = result_data["plot"]
|
| 82 |
frame_images = result_data["frames"]
|
| 83 |
-
|
| 84 |
-
print(f"✅ analyze_video returned: {result_image}")
|
| 85 |
except Exception as e:
|
| 86 |
-
print(f"❌ analyze_video failed: {e}")
|
| 87 |
result_image = "placeholder.jpg"
|
|
|
|
| 88 |
|
| 89 |
return redirect(url_for(
|
| 90 |
'index',
|
|
|
|
| 80 |
result_data = analyze_video(filepath, filename, session['user_id'])
|
| 81 |
result_image = result_data["plot"]
|
| 82 |
frame_images = result_data["frames"]
|
|
|
|
|
|
|
| 83 |
except Exception as e:
|
|
|
|
| 84 |
result_image = "placeholder.jpg"
|
| 85 |
+
frame_images = []
|
| 86 |
|
| 87 |
return redirect(url_for(
|
| 88 |
'index',
|