Spaces:
Runtime error
Runtime error
Commit
Β·
cca5df1
1
Parent(s):
d2025f0
Fix syntax issue still try to remove share button
Browse files
app.py
CHANGED
@@ -397,14 +397,15 @@ with gr.Blocks(css=css) as demo:
|
|
397 |
inputs=inputs,
|
398 |
outputs=[infer_outputs, community_icon, loading_icon]
|
399 |
)
|
400 |
-
share_button.click(
|
401 |
-
None,
|
402 |
-
[],
|
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()
|
|
|
397 |
inputs=inputs,
|
398 |
outputs=[infer_outputs, community_icon, loading_icon]
|
399 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
400 |
# after loading_icon on line 392.5
|
401 |
# share_button = gr.Button("", elem_id="share-btn", visible=False)
|
402 |
# and update outputs=[...] on line 398 to match this
|
403 |
# outputs=[infer_outputs, community_icon, loading_icon, share_button]
|
404 |
+
# then this has to be added after line 399
|
405 |
+
# share_button.click(
|
406 |
+
# None,
|
407 |
+
# [],
|
408 |
+
# [],
|
409 |
+
# _js=share_js,
|
410 |
+
# )
|
411 |
demo.queue(max_size=20).launch()
|