Spaces:
Running
Running
File size: 990 Bytes
4ba17b3 9c02460 4ba17b3 56132ca 2bb13f8 706f673 247c098 e43e895 706f673 247c098 706f673 247c098 b87aec8 247c098 e43e895 b87aec8 247c098 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
import streamlit as st
import os
# Video directory
VIDEO_FOLDER = "./src/synthda_falling_realreal/"
# Set page layout
st.set_page_config(layout="centered")
# Centered title
st.markdown(
"<h1 style='text-align: center;'>AutoSynthDa Pose Interpolation Viewer</h1>",
unsafe_allow_html=True
)
# Centered description
st.markdown(
"<p style='text-align: center;'>Use the slider to explore how pose interpolation changes as the weight increases.</p>",
unsafe_allow_html=True
)
# Centered slider using columns
col1, col2, col3 = st.columns([1, 2, 1])
with col2:
weight = st.slider("Interpolation Weight", 0.0, 1.0, step=0.1)
# Video filename
filename = f"videos_generated_{weight:.1f}.mp4"
video_path = os.path.join(VIDEO_FOLDER, filename)
# Centered video display
col1, col2, col3 = st.columns([1, 2, 1])
with col2:
if os.path.exists(video_path):
st.video(f"{VIDEO_FOLDER}/{filename}")
else:
st.error(f"No video found for weight = {weight:.1f}")
|