Spaces:
Runtime error
Runtime error
remove extra outputs (#10)
Browse files- remove extra outputs (d1d33ce1e2286e55770b0802fab053c423bb7c90)
Co-authored-by: Radamés Ajna <radames@users.noreply.huggingface.co>
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)
|
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('''
|
|
|
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('''
|