Spaces:
Running
Running
File size: 699 Bytes
4ba17b3 9c02460 4ba17b3 56132ca 2bb13f8 706f673 e43e895 706f673 e43e895 706f673 e43e895 b87aec8 e43e895 b87aec8 e43e895 f4bfc01 e43e895 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
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}")
|