Spaces:
Runtime error
Runtime error
fouadmahmoud283-ai commited on
Commit ·
9c5ce75
1
Parent(s): ecf5f79
fixing camera n1235
Browse files- src/streamlit_app.py +2 -1
src/streamlit_app.py
CHANGED
|
@@ -630,7 +630,8 @@ def main():
|
|
| 630 |
st.markdown("### 🎬 Processed Video")
|
| 631 |
try:
|
| 632 |
if os.path.exists(st.session_state.processed_video_path) and os.path.getsize(st.session_state.processed_video_path) > 0:
|
| 633 |
-
|
|
|
|
| 634 |
else:
|
| 635 |
st.error("Processed video file is empty or missing.")
|
| 636 |
except Exception as e:
|
|
|
|
| 630 |
st.markdown("### 🎬 Processed Video")
|
| 631 |
try:
|
| 632 |
if os.path.exists(st.session_state.processed_video_path) and os.path.getsize(st.session_state.processed_video_path) > 0:
|
| 633 |
+
with open(st.session_state.processed_video_path, "rb") as f:
|
| 634 |
+
st.video(f.read(), format="video/mp4")
|
| 635 |
else:
|
| 636 |
st.error("Processed video file is empty or missing.")
|
| 637 |
except Exception as e:
|