VASR_ / src /streamlit_app.py
sophiemaw's picture
Update src/streamlit_app.py
de98af4 verified
raw
history blame contribute delete
439 Bytes
import streamlit as st
import tempfile
HF_TMP = tempfile.mkdtemp()
uploaded_video = st.file_uploader("📹 Upload video file", type=["mp4", "mov"])
if uploaded_video is not None:
with tempfile.NamedTemporaryFile(delete=False, suffix=".mp4", dir=HF_TMP) as tmp_file:
tmp_file.write(uploaded_video.read())
input_video_path = tmp_file.name
st.video(input_video_path)
st.success("✅ Video uploaded and saved.")