Updated lines 17-24 with: video_filename = 'jc.mp4' try: with open(video_filename, 'rb') as f: video_bytes = f.read() st.video(video_bytes) except FileNotFoundError: st.warning(f"Archivo de video {video_filename} no encontrado.")
Browse files
app.py
CHANGED
@@ -3,10 +3,19 @@ import streamlit as st
|
|
3 |
st.set_page_config(page_title="Thin Plate Spline Motion Model", layout="wide")
|
4 |
|
5 |
# Title of the app
|
6 |
-
st.title("Thin Plate Spline Motion Model")
|
7 |
|
8 |
video_filename = 'final_output_video.mp4'
|
9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
try:
|
11 |
with open(video_filename, 'rb') as f:
|
12 |
video_bytes = f.read()
|
|
|
3 |
st.set_page_config(page_title="Thin Plate Spline Motion Model", layout="wide")
|
4 |
|
5 |
# Title of the app
|
6 |
+
st.title("Thin Plate Spline Motion Model | Driving motion deriving from jc.mp4")
|
7 |
|
8 |
video_filename = 'final_output_video.mp4'
|
9 |
|
10 |
+
try:
|
11 |
+
with open(video_filename, 'rb') as f:
|
12 |
+
video_bytes = f.read()
|
13 |
+
st.video(video_bytes)
|
14 |
+
except FileNotFoundError:
|
15 |
+
st.warning(f"Archivo de video {video_filename} no encontrado.")
|
16 |
+
|
17 |
+
video_filename = 'jc.mp4'
|
18 |
+
|
19 |
try:
|
20 |
with open(video_filename, 'rb') as f:
|
21 |
video_bytes = f.read()
|