Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -881,38 +881,38 @@ def add_video_generation_ui(container):
|
|
881 |
"""Enhanced video generation UI with improved file handling"""
|
882 |
st.markdown("### 🎥 Video Generation")
|
883 |
|
884 |
-
col1, col2 = st.columns([2, 1])
|
885 |
-
|
886 |
-
|
887 |
-
|
888 |
"Upload Image for Video Generation 🖼️",
|
889 |
type=['png', 'jpg', 'jpeg'],
|
890 |
help="Upload a clear, well-lit image. Recommended size: 576x1024 pixels."
|
891 |
)
|
892 |
|
893 |
-
with col2:
|
894 |
-
|
895 |
-
|
896 |
-
|
897 |
-
|
898 |
-
|
899 |
-
|
900 |
-
|
901 |
-
|
902 |
-
|
903 |
-
|
904 |
-
|
905 |
-
|
906 |
-
|
907 |
-
|
908 |
-
|
909 |
-
|
910 |
-
|
911 |
-
|
912 |
-
|
913 |
-
|
914 |
-
|
915 |
-
|
916 |
|
917 |
if uploaded_file is not None:
|
918 |
try:
|
|
|
881 |
"""Enhanced video generation UI with improved file handling"""
|
882 |
st.markdown("### 🎥 Video Generation")
|
883 |
|
884 |
+
#col1, col2 = st.columns([2, 1])
|
885 |
+
#with col1:
|
886 |
+
|
887 |
+
uploaded_file = st.file_uploader(
|
888 |
"Upload Image for Video Generation 🖼️",
|
889 |
type=['png', 'jpg', 'jpeg'],
|
890 |
help="Upload a clear, well-lit image. Recommended size: 576x1024 pixels."
|
891 |
)
|
892 |
|
893 |
+
#with col2:
|
894 |
+
st.markdown("#### Generation Parameters")
|
895 |
+
motion_bucket_id = st.slider(
|
896 |
+
"Motion Intensity 🌊",
|
897 |
+
min_value=1,
|
898 |
+
max_value=255,
|
899 |
+
value=127,
|
900 |
+
help="Lower values create subtle movement, higher values create more dramatic motion"
|
901 |
+
)
|
902 |
+
fps_id = st.slider(
|
903 |
+
"Frames per Second 🎬",
|
904 |
+
min_value=1,
|
905 |
+
max_value=30,
|
906 |
+
value=6,
|
907 |
+
help="Higher values create smoother but potentially less stable videos"
|
908 |
+
)
|
909 |
+
|
910 |
+
with st.expander("Advanced Options"):
|
911 |
+
use_custom_seed = st.checkbox("Use Custom Seed")
|
912 |
+
if use_custom_seed:
|
913 |
+
seed = st.number_input("Seed Value", value=int(time.time() * 1000))
|
914 |
+
else:
|
915 |
+
seed = None
|
916 |
|
917 |
if uploaded_file is not None:
|
918 |
try:
|