haoheliu radames commited on
Commit
91dd1a0
1 Parent(s): 4b70abe

remove extra outputs (#10)

Browse files

- remove extra outputs (d1d33ce1e2286e55770b0802fab053c423bb7c90)


Co-authored-by: Radamés Ajna <[email protected]>

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -236,13 +236,13 @@ with iface:
236
  # outputs=[gr.Audio(label="Output", type="numpy"), gr.Audio(label="Output", type="numpy")]
237
  btn = gr.Button("Submit").style(full_width=True)
238
 
239
- with gr.Group(elem_id="share-btn-container", visible=False) as share_group:
240
  community_icon = gr.HTML(community_icon_html)
241
  loading_icon = gr.HTML(loading_icon_html)
242
  share_button = gr.Button("Share to community", elem_id="share-btn")
243
 
244
  btn.click(text2audio, inputs=[
245
- textbox, duration, guidance_scale, seed, n_candidates], outputs=[outputs, share_group])
246
 
247
  share_button.click(None, [], [], _js=share_js)
248
  gr.HTML('''
 
236
  # outputs=[gr.Audio(label="Output", type="numpy"), gr.Audio(label="Output", type="numpy")]
237
  btn = gr.Button("Submit").style(full_width=True)
238
 
239
+ with gr.Group(elem_id="share-btn-container", visible=False):
240
  community_icon = gr.HTML(community_icon_html)
241
  loading_icon = gr.HTML(loading_icon_html)
242
  share_button = gr.Button("Share to community", elem_id="share-btn")
243
 
244
  btn.click(text2audio, inputs=[
245
+ textbox, duration, guidance_scale, seed, n_candidates], outputs=[outputs])
246
 
247
  share_button.click(None, [], [], _js=share_js)
248
  gr.HTML('''