cpuai commited on
Commit
66bb3f2
·
verified ·
1 Parent(s): 316372c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -26
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
- with gr.Row():
609
- seed = gr.Number(
610
- label="Random Seed",
611
- value=-1,
612
- info="Use the same seed to recreate identical videos (-1 for random)",
613
- precision=0,
614
- visible=False # Hide advanced options
615
- )
616
- fps = gr.Slider(
617
- label="Playback FPS",
618
- minimum=1,
619
- maximum=30,
620
- value=args.fps,
621
- step=1,
622
- visible=False
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! Click "Show Advanced Settings" and use a specific seed number instead of -1. Using the same seed with the same prompt will generate identical videos.</p>
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
  ---