More descriptive labels and button fix

#8
by multimodalart HF staff - opened
Files changed (1) hide show
  1. app.py +10 -4
app.py CHANGED
@@ -180,6 +180,9 @@ css = """
180
  text-align: center;
181
  font-weight: 900;
182
  }
 
 
 
183
  """
184
  iface = gr.Blocks(css=css)
185
 
@@ -227,7 +230,8 @@ with iface:
227
  with gr.Accordion("Click to modify detailed configurations", open=False):
228
  seed = gr.Number(
229
  value=45,
230
- label="Change this value (any integer number) will lead to a different generation result.",
 
231
  )
232
  # duration = gr.Slider(
233
  # 10, 10, value=10, step=2.5, label="Duration (seconds)"
@@ -237,14 +241,16 @@ with iface:
237
  6,
238
  value=3.5,
239
  step=0.5,
240
- label="Guidance scale (Large => better quality and relavancy to text; Small => better diversity)",
 
241
  )
242
  n_candidates = gr.Slider(
243
  1,
244
  3,
245
  value=3,
246
  step=1,
247
- label="Automatic quality control. This number control the number of candidates (e.g., generate three audios and choose the best to show you). A Larger value usually lead to better quality with heavier computation",
 
248
  )
249
  # model_name = gr.Dropdown(
250
  # ["audioldm-m-text-ft", "audioldm-s-text-ft", "audioldm-m-full","audioldm-s-full-v2", "audioldm-s-full", "audioldm-l-full"], value="audioldm-m-full", label="Choose the model to use. audioldm-m-text-ft and audioldm-s-text-ft are recommanded. -s- means small, -m- means medium and -l- means large",
@@ -260,7 +266,7 @@ with iface:
260
  # loading_icon = gr.HTML(loading_icon_html, visible=False)
261
  # share_button = gr.Button("Share to community", elem_id="share-btn", visible=False)
262
  # outputs=[gr.Audio(label="Output", type="numpy"), gr.Audio(label="Output", type="numpy")]
263
- btn = gr.Button("Submit").style(full_width=True)
264
 
265
  with gr.Group(elem_id="share-btn-container", visible=False):
266
  community_icon = gr.HTML(community_icon_html)
 
180
  text-align: center;
181
  font-weight: 900;
182
  }
183
+ #submit-button{
184
+ width: 100%;
185
+ }
186
  """
187
  iface = gr.Blocks(css=css)
188
 
 
230
  with gr.Accordion("Click to modify detailed configurations", open=False):
231
  seed = gr.Number(
232
  value=45,
233
+ label="Seed",
234
+ info="Change this value (any integer number) will lead to a different generation result."
235
  )
236
  # duration = gr.Slider(
237
  # 10, 10, value=10, step=2.5, label="Duration (seconds)"
 
241
  6,
242
  value=3.5,
243
  step=0.5,
244
+ label="Guidance Scale",
245
+ info="Large => better quality and relavancy to text; Small => better diversity"
246
  )
247
  n_candidates = gr.Slider(
248
  1,
249
  3,
250
  value=3,
251
  step=1,
252
+ label="Number of candidates",
253
+ info="This number control the number of candidates (e.g., generate three audios and choose the best to show you). A Larger value usually lead to better quality with heavier computation"
254
  )
255
  # model_name = gr.Dropdown(
256
  # ["audioldm-m-text-ft", "audioldm-s-text-ft", "audioldm-m-full","audioldm-s-full-v2", "audioldm-s-full", "audioldm-l-full"], value="audioldm-m-full", label="Choose the model to use. audioldm-m-text-ft and audioldm-s-text-ft are recommanded. -s- means small, -m- means medium and -l- means large",
 
266
  # loading_icon = gr.HTML(loading_icon_html, visible=False)
267
  # share_button = gr.Button("Share to community", elem_id="share-btn", visible=False)
268
  # outputs=[gr.Audio(label="Output", type="numpy"), gr.Audio(label="Output", type="numpy")]
269
+ btn = gr.Button("Submit", elem_id="submit-button").style(full_width=True)
270
 
271
  with gr.Group(elem_id="share-btn-container", visible=False):
272
  community_icon = gr.HTML(community_icon_html)