liuhuadai commited on
Commit
0f30aa4
1 Parent(s): 514c77f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -161,9 +161,8 @@ with gr.Blocks() as demo:
161
  label="Select from audios num.This number control the number of candidates \
162
  (e.g., generate three audios and choose the best to show you). A Larger value usually lead to \
163
  better quality with heavier computation", minimum=1, maximum=10, value=1, step=1)
164
- # num_samples = 1
165
- ddim_steps = gr.Slider(label="Steps", minimum=1,
166
- maximum=150, value=2, step=1)
167
  scale = gr.Slider(
168
  label="Guidance Scale:(Large => more relevant to text but the quality may drop)", minimum=0.1, maximum=8.0, value=5.0, step=0.1
169
  )
@@ -183,8 +182,8 @@ with gr.Blocks() as demo:
183
  with gr.Row():
184
  with gr.Column():
185
  gr.Examples(
186
- examples = [['a dog barking and a bird chirping',100,3,3,55],['Pigeons peck, coo, and flap their wings before a man speaks',100,3,3,55],
187
- ['music of violin and piano',100,3,2,88],['wind thunder and rain falling',100,3,3,55],['music made by drum kit',100,3,3,55]],
188
  inputs = [prompt,ddim_steps, num_samples, scale, seed],
189
  outputs = [outaudio]
190
  )
 
161
  label="Select from audios num.This number control the number of candidates \
162
  (e.g., generate three audios and choose the best to show you). A Larger value usually lead to \
163
  better quality with heavier computation", minimum=1, maximum=10, value=1, step=1)
164
+ ddim_steps = gr.Slider(label="ddim_steps", minimum=1,
165
+ maximum=50, value=2, step=1)
 
166
  scale = gr.Slider(
167
  label="Guidance Scale:(Large => more relevant to text but the quality may drop)", minimum=0.1, maximum=8.0, value=5.0, step=0.1
168
  )
 
182
  with gr.Row():
183
  with gr.Column():
184
  gr.Examples(
185
+ examples = [['a dog barking and a bird chirping',2,1,5,55],['Pigeons peck, coo, and flap their wings before a man speaks',2,1,5,55],
186
+ ['music of violin and piano',2,1,5,88],['wind thunder and rain falling',2,1,5,55],['music made by drum kit',2,1,5,55]],
187
  inputs = [prompt,ddim_steps, num_samples, scale, seed],
188
  outputs = [outaudio]
189
  )