MatteoFasulo commited on
Commit
79352ba
Β·
verified Β·
1 Parent(s): 95dd8ba

Update without javascript onBtnClick

Browse files
Files changed (1) hide show
  1. app.py +0 -5
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)