TroglodyteDerivations's picture
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.")
39d89c3 verified
raw
history blame contribute delete
707 Bytes
import streamlit as st
# Set page title and layout
st.set_page_config(page_title="Thin Plate Spline Motion Model", layout="wide")
# Title of the app
st.title("Thin Plate Spline Motion Model | Driving motion deriving from jc.mp4")
video_filename = 'final_output_video.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.")
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.")