Spaces:
Runtime error
Runtime error
Commit
·
188cbee
1
Parent(s):
4846843
Update app.py
Browse files
app.py
CHANGED
@@ -91,7 +91,7 @@ with gr.Blocks() as manual_label_demo:
|
|
91 |
generate_btn.click(fn=manual_label, outputs=[gr.Textbox(label="News Headline"),gr.Textbox(label="Our Predicted Sentiment")])
|
92 |
drop_down_label = gr.Dropdown(["Positive","Negative","Neutral"], label="Select the true sentiment of the news article.")
|
93 |
submit_btn = gr.Button('Submit your sentiment!')
|
94 |
-
submit_btn.click(fn=thanks, inputs=drop_down_label, outputs=gr.Textbox())
|
95 |
|
96 |
|
97 |
demo = gr.TabbedInterface([suggestion_demo, manual_label_demo], ["Get recommended news articles", "Help improve our model"])
|
|
|
91 |
generate_btn.click(fn=manual_label, outputs=[gr.Textbox(label="News Headline"),gr.Textbox(label="Our Predicted Sentiment")])
|
92 |
drop_down_label = gr.Dropdown(["Positive","Negative","Neutral"], label="Select the true sentiment of the news article.")
|
93 |
submit_btn = gr.Button('Submit your sentiment!')
|
94 |
+
submit_btn.click(fn=thanks, inputs=drop_down_label, outputs=gr.Textbox(label = ' '))
|
95 |
|
96 |
|
97 |
demo = gr.TabbedInterface([suggestion_demo, manual_label_demo], ["Get recommended news articles", "Help improve our model"])
|