smartdigitalnetworks commited on
Commit
764da16
·
verified ·
1 Parent(s): 4f6dc36

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -47
app.py CHANGED
@@ -717,38 +717,29 @@ with gr.Blocks(css="footer {display:none !important}") as demo:
717
  gr.Examples(
718
  examples=[
719
  [
720
- ["./examples/ai_talk.wav", "./examples/bg-image.png"],
721
- "Use the image as the background with a full-width waveform visualization for the audio.",
722
  0.95,
723
  0.1,
724
  list(MODELS.keys())[0],
725
  ],
726
  [
727
- [
728
- "./examples/cat1.jpeg",
729
- "./examples/cat2.jpeg",
730
- "./examples/cat3.jpeg",
731
- "./examples/cat4.jpeg",
732
- "./examples/cat5.jpeg",
733
- "./examples/cat6.jpeg",
734
- "./examples/heat-wave.mp3",
735
- ],
736
- "Create a slide show of the cat images with the audio as background music. Make the video duration match the audio duration.",
737
  0.95,
738
  0.1,
739
  list(MODELS.keys())[0],
740
  ],
741
  [
742
- [
743
- "./examples/cat1.jpeg",
744
- "./examples/cat2.jpeg",
745
- "./examples/cat3.jpeg",
746
- "./examples/cat4.jpeg",
747
- "./examples/cat5.jpeg",
748
- "./examples/cat6.jpeg",
749
- "./examples/heat-wave.mp3",
750
- ],
751
- "Create a slide show of the cat images that repeats twice with the audio as background music. Make the video duration match the audio duration.",
752
  0.95,
753
  0.1,
754
  list(MODELS.keys())[0],
@@ -763,28 +754,7 @@ with gr.Blocks(css="footer {display:none !important}") as demo:
763
  "./examples/cat6.jpeg",
764
  "./examples/heat-wave.mp3",
765
  ],
766
- "Create a 3x2 grid of the cat images with the audio as background music. Make the video duration match the audio duration.",
767
- 0.95,
768
- 0.1,
769
- list(MODELS.keys())[0],
770
- ],
771
- [
772
- ["./examples/welcomeiamagentfive.mp4"],
773
- "Add a text watermark 'Agent 5' to the upper right corner of the video with white text and semi-transparent background.",
774
- 0.95,
775
- 0.1,
776
- list(MODELS.keys())[0],
777
- ],
778
- [
779
- ["./examples/welcomeiamagentfive.mp4"],
780
- "Cut the video to extract only the middle 5 seconds (starting at 00:02 and ending at 00:07).",
781
- 0.95,
782
- 0.1,
783
- list(MODELS.keys())[0],
784
- ],
785
- [
786
- ["./examples/welcomeiamagentfive.mp4"],
787
- "Convert the video to black and white (grayscale) while maintaining the original audio..",
788
  0.95,
789
  0.1,
790
  list(MODELS.keys())[0],
@@ -798,11 +768,11 @@ with gr.Blocks(css="footer {display:none !important}") as demo:
798
  )
799
 
800
  with gr.Row():
801
- gr.HTML("<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>")
802
 
803
  # Launch MCP interface for tool access
804
- mcp_interface.queue(default_concurrency_limit=200)
805
 
806
  # Launch main demo
807
- demo.queue(default_concurrency_limit=200)
808
  demo.launch(show_api=False, ssr_mode=False, mcp_server=False)
 
717
  gr.Examples(
718
  examples=[
719
  [
720
+ ["./examples/welcomeiamagentfive.mp4"],
721
+ "Add a text watermark 'Agent 5' to the upper right corner of the video with white text and semi-transparent background.",
722
  0.95,
723
  0.1,
724
  list(MODELS.keys())[0],
725
  ],
726
  [
727
+ ["./examples/welcomeiamagentfive.mp4"],
728
+ "Cut the video to extract only the middle 5 seconds (starting at 00:02 and ending at 00:07).",
 
 
 
 
 
 
 
 
729
  0.95,
730
  0.1,
731
  list(MODELS.keys())[0],
732
  ],
733
  [
734
+ ["./examples/welcomeiamagentfive.mp4"],
735
+ "Convert the video to black and white (grayscale) while maintaining the original audio..",
736
+ 0.95,
737
+ 0.1,
738
+ list(MODELS.keys())[0],
739
+ ],
740
+ [
741
+ ["./examples/ai_talk.wav", "./examples/bg-image.png"],
742
+ "Use the image as the background with a full-width waveform visualization for the audio.",
 
743
  0.95,
744
  0.1,
745
  list(MODELS.keys())[0],
 
754
  "./examples/cat6.jpeg",
755
  "./examples/heat-wave.mp3",
756
  ],
757
+ "Create a slide show of the cat images with the audio as background music. Make the video duration match the audio duration.",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
758
  0.95,
759
  0.1,
760
  list(MODELS.keys())[0],
 
768
  )
769
 
770
  with gr.Row():
771
+ gr.HTML("<br><br><br><br><br><br><br><br><br><br><br><br><br><br>")
772
 
773
  # Launch MCP interface for tool access
774
+ mcp_interface.queue(default_concurrency_limit=20)
775
 
776
  # Launch main demo
777
+ demo.queue(default_concurrency_limit=20)
778
  demo.launch(show_api=False, ssr_mode=False, mcp_server=False)