Spaces:
Sleeping
Sleeping
File size: 883 Bytes
b1d4203 |
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 |
import streamlit as st
from utils import *
st.set_page_config(
page_title="Number to Video - Advanced Settings",
page_icon="🎥",
initial_sidebar_state="collapsed",
)
col1, col2 = st.columns(2)
with col1:
with st.container(border=True):
st.subheader("Settings")
st.divider()
trim_start = st.slider("Trim start", 0.0, 1.0, 0.10, 0.01)
trim_end = st.slider("Trim end", 0.0, 1.0, 0.10, 0.01)
number = st.text_input("Enter a number between 1 and 9999999", "123")
number = int(number)
clips = generate_clip_sequence(number)
submit = st.button("Create Video", use_container_width=True)
with col2:
with st.container(border=True):
output_file = "output.mp4"
if submit:
create_video(number, trim_start, trim_end, output_file)
st.video(output_file, autoplay=True) |