Spaces:
Running
Running
import streamlit as st | |
import os | |
# Video directory | |
VIDEO_FOLDER = "./src/synthda_falling_realreal/" | |
st.set_page_config(layout="centered") | |
st.title("AutoSynthDa Pose Interpolation Viewer") | |
st.markdown("Use the slider to explore how pose interpolation changes as the weight increases.") | |
# Slider for selecting weight | |
weight = st.slider("Interpolation Weight", 0.0, 1.0, step=0.1) | |
# Filename based on slider value | |
filename = f"videos_generated_{weight:.1f}.mp4" | |
video_path = os.path.join(VIDEO_FOLDER, filename) | |
# If file exists, show video from static path | |
if os.path.exists(video_path): | |
st.video(f"{VIDEO_FOLDER}/{filename}") | |
else: | |
st.error(f"No video found for weight = {weight:.1f}") | |