prismaudio-project commited on
Commit
b2ab4c5
·
1 Parent(s): a750c6c
Files changed (1) hide show
  1. app.py +18 -1
app.py CHANGED
@@ -546,7 +546,24 @@ def build_ui() -> gr.Blocks:
546
  interactive=False,
547
  height=300,
548
  )
549
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
550
 
551
  # ======================================================
552
  # Instructions
 
546
  interactive=False,
547
  height=300,
548
  )
549
+ gr.Markdown("---")
550
+ gr.Markdown("### 💡 Example Prompts (click to fill)")
551
+ gr.Examples(
552
+ examples=[
553
+ ["demos/bird.mp4", """<Semantic> Melodic chirping and varied tweeting of Baltimore orioles and mynah birds in an outdoor setting. Includes occasional sounds of birds interacting with food (oranges).
554
+ <Temporal> Immediate, continuous, and active bird calls throughout the duration. Food interaction sounds occur periodically.
555
+ <Aesthetic> Lively, natural, and clear sound quality. Vocalizations are prominent. No human voices or extraneous noise.
556
+ <Spatial> Natural sound distribution across the stereo field, suggesting birds are around the listener. Food interaction sounds can be localized.
557
+ """],
558
+ ["demos/Rail transport_3_479.mp4", "Generate ambient countryside sounds with a gentle breeze rustling the leaves of a large tree. From the right, introduce a faint rumble of wheels on a track and a steam engine chugging. Allow the sounds to grow louder and pan from right to left as the steam train travels across the landscape. Include the powerful chugging and clattering of carriages in the soundscape, then gradually recede the sounds to the left. Ensure no additional background noise or music is present."],
559
+ ["demos/Cat_2_438.mp4", "A cat perched in a tree, letting out loud and sweet meows."],
560
+ ],
561
+ inputs=[video_input, caption_input],
562
+ outputs=[log_output, video_output], # ⭐ 必须同时指定outputs
563
+ fn=generate_audio, # ⭐ 指定运行函数
564
+ cache_examples=True, # ⭐ 启动时预跑并缓存
565
+ examples_per_page=5,
566
+ )
567
 
568
  # ======================================================
569
  # Instructions