Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -605,22 +605,25 @@ with gr.Blocks(title="AI Video Generator - Transform Text to Video", theme=gr.th
|
|
605 |
info="Select the format that best suits your needs"
|
606 |
)
|
607 |
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
|
|
|
|
|
|
624 |
|
625 |
with gr.Accordion("🎯 Need Inspiration? Try These Examples", open=True):
|
626 |
gr.Examples(
|
@@ -704,19 +707,10 @@ with gr.Blocks(title="AI Video Generator - Transform Text to Video", theme=gr.th
|
|
704 |
|
705 |
<details>
|
706 |
<summary><b>Can I recreate the same video?</b></summary>
|
707 |
-
<p>Yes!
|
708 |
</details>
|
709 |
""")
|
710 |
|
711 |
-
# Add advanced settings toggle
|
712 |
-
with gr.Row():
|
713 |
-
with gr.Column(scale=2):
|
714 |
-
with gr.Accordion("⚙️ Advanced Settings", open=False):
|
715 |
-
gr.Markdown("**For Advanced Users Only**")
|
716 |
-
seed.visible = True
|
717 |
-
seed.render()
|
718 |
-
gr.Markdown("*Note: Use a specific seed value to recreate the same video*")
|
719 |
-
|
720 |
# Add footer
|
721 |
gr.Markdown("""
|
722 |
---
|
|
|
605 |
info="Select the format that best suits your needs"
|
606 |
)
|
607 |
|
608 |
+
# Advanced settings in collapsible section
|
609 |
+
with gr.Accordion("⚙️ Advanced Settings", open=False):
|
610 |
+
gr.Markdown("**For Advanced Users Only**")
|
611 |
+
with gr.Row():
|
612 |
+
seed = gr.Number(
|
613 |
+
label="Random Seed",
|
614 |
+
value=-1,
|
615 |
+
info="Use the same seed to recreate identical videos (-1 for random)",
|
616 |
+
precision=0
|
617 |
+
)
|
618 |
+
fps = gr.Slider(
|
619 |
+
label="Playback FPS",
|
620 |
+
minimum=1,
|
621 |
+
maximum=30,
|
622 |
+
value=args.fps,
|
623 |
+
step=1,
|
624 |
+
info="Frames per second for video playback"
|
625 |
+
)
|
626 |
+
gr.Markdown("*Note: Using a specific seed value with the same prompt will generate identical videos*")
|
627 |
|
628 |
with gr.Accordion("🎯 Need Inspiration? Try These Examples", open=True):
|
629 |
gr.Examples(
|
|
|
707 |
|
708 |
<details>
|
709 |
<summary><b>Can I recreate the same video?</b></summary>
|
710 |
+
<p>Yes! Open "Advanced Settings" and use a specific seed number instead of -1. Using the same seed with the same prompt will generate identical videos.</p>
|
711 |
</details>
|
712 |
""")
|
713 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
714 |
# Add footer
|
715 |
gr.Markdown("""
|
716 |
---
|