Update without javascript onBtnClick
Browse files
app.py
CHANGED
@@ -93,11 +93,6 @@ with gr.Blocks(theme=theme, css="""
|
|
93 |
gr.Markdown("**Threshold** for subjective classification is adjustable in code (default: 0.65). Feel free to fork and customize! π")
|
94 |
# Link inputs to outputs
|
95 |
btn.click(fn=analyze, inputs=txt, outputs=[chart, table])
|
96 |
-
# Add confetti effect on button click
|
97 |
-
btn.js_on_event("click", {
|
98 |
-
"type": "confetti",
|
99 |
-
"props": {"particleCount": 100, "spread": 60}
|
100 |
-
})
|
101 |
|
102 |
# -- Launch
|
103 |
demo.queue().launch(server_name="0.0.0.0", share=True)
|
|
|
93 |
gr.Markdown("**Threshold** for subjective classification is adjustable in code (default: 0.65). Feel free to fork and customize! π")
|
94 |
# Link inputs to outputs
|
95 |
btn.click(fn=analyze, inputs=txt, outputs=[chart, table])
|
|
|
|
|
|
|
|
|
|
|
96 |
|
97 |
# -- Launch
|
98 |
demo.queue().launch(server_name="0.0.0.0", share=True)
|