ZeyuXie commited on
Commit
b3760ba
·
verified ·
1 Parent(s): 9a7b1fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -8
app.py CHANGED
@@ -68,12 +68,9 @@ gr.Markdown("## PicoAudio")
68
  gr.Markdown("18 events: " + ", ".join(event_list))
69
  prompt = gr.Textbox(label="Prompt: Input your caption formatted as 'event1 at onset1-offset1_onset2-offset2 and event2 at onset1-offset1'.",
70
  value="spraying at 0.38-1.176_3.06-3.856 and gunshot at 1.729-3.729_4.367-6.367_7.031-9.031.",)
71
-
72
-
73
- num_steps = gr.Slider(label="num_steps",
74
- minimum=1, maximum=300, value=200, step=1)
75
- guidance_scale = gr.Slider(label="guidance_scale Scale:(Large => more relevant to text but the quality may drop)",
76
- minimum=0.1, maximum=8.0, value=3.0, step=0.1)
77
 
78
 
79
  gr_interface = gr.Interface(
@@ -90,6 +87,5 @@ gr_interface = gr.Interface(
90
  cache_examples="lazy", # Turn on to cache.
91
  )
92
 
93
-
94
- demo.launch()
95
 
 
68
  gr.Markdown("18 events: " + ", ".join(event_list))
69
  prompt = gr.Textbox(label="Prompt: Input your caption formatted as 'event1 at onset1-offset1_onset2-offset2 and event2 at onset1-offset1'.",
70
  value="spraying at 0.38-1.176_3.06-3.856 and gunshot at 1.729-3.729_4.367-6.367_7.031-9.031.",)
71
+ outaudio = gr.Audio()
72
+ num_steps = gr.Slider(label="num_steps", minimum=1, maximum=300, value=200, step=1)
73
+ guidance_scale = gr.Slider(label="guidance_scale", minimum=0.1, maximum=8.0, value=3.0, step=0.1)
 
 
 
74
 
75
 
76
  gr_interface = gr.Interface(
 
87
  cache_examples="lazy", # Turn on to cache.
88
  )
89
 
90
+ gr_interface.queue(10).launch()
 
91