Spaces:
Runtime error
Runtime error
Commit
Β·
d2025f0
1
Parent(s):
e33b5c3
Try to remove share button
Browse files
app.py
CHANGED
@@ -390,13 +390,12 @@ with gr.Blocks(css=css) as demo:
|
|
390 |
with gr.Group(elem_id="share-btn-container"):
|
391 |
community_icon = gr.HTML(community_icon_html, visible=False)
|
392 |
loading_icon = gr.HTML(loading_icon_html, visible=False)
|
393 |
-
share_button = gr.Button("Share to community", elem_id="share-btn", visible=False)
|
394 |
checkbox_states = {}
|
395 |
inputs = [text]
|
396 |
btn.click(
|
397 |
infer,
|
398 |
inputs=inputs,
|
399 |
-
outputs=[infer_outputs, community_icon, loading_icon
|
400 |
)
|
401 |
share_button.click(
|
402 |
None,
|
@@ -404,5 +403,8 @@ with gr.Blocks(css=css) as demo:
|
|
404 |
[],
|
405 |
_js=share_js,
|
406 |
)
|
407 |
-
|
|
|
|
|
|
|
408 |
demo.queue(max_size=20).launch()
|
|
|
390 |
with gr.Group(elem_id="share-btn-container"):
|
391 |
community_icon = gr.HTML(community_icon_html, visible=False)
|
392 |
loading_icon = gr.HTML(loading_icon_html, visible=False)
|
|
|
393 |
checkbox_states = {}
|
394 |
inputs = [text]
|
395 |
btn.click(
|
396 |
infer,
|
397 |
inputs=inputs,
|
398 |
+
outputs=[infer_outputs, community_icon, loading_icon]
|
399 |
)
|
400 |
share_button.click(
|
401 |
None,
|
|
|
403 |
[],
|
404 |
_js=share_js,
|
405 |
)
|
406 |
+
# after loading_icon on line 392.5
|
407 |
+
# share_button = gr.Button("", elem_id="share-btn", visible=False)
|
408 |
+
# and update outputs=[...] on line 398 to match this
|
409 |
+
# outputs=[infer_outputs, community_icon, loading_icon, share_button]
|
410 |
demo.queue(max_size=20).launch()
|