yangxinsci1993 commited on
Commit
c7135b5
·
1 Parent(s): 7df388d

Edit function

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -33,5 +33,6 @@ with gr.Blocks() as demo:
33
  ["thankfulness", "neutralizing", "optimism", "growth", "impermanence", "self_affirmation"], label="Strategy to use?"
34
  )
35
  output = gr.Textbox(label="Reframed Output")
36
- radio.change(fn=reframe, inputs=[text, radio], outputs=output)
 
37
  demo.launch()
 
33
  ["thankfulness", "neutralizing", "optimism", "growth", "impermanence", "self_affirmation"], label="Strategy to use?"
34
  )
35
  output = gr.Textbox(label="Reframed Output")
36
+ greet_btn = gr.Button("Reframe")
37
+ greet_btn.click(fn=reframe, inputs=[text, radio], outputs=output)
38
  demo.launch()