Spaces:
Build error
Build error
yangxinsci1993
commited on
Commit
·
c7135b5
1
Parent(s):
7df388d
Edit function
Browse files
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 |
-
|
|
|
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()
|