torileatherman commited on
Commit
5149066
·
1 Parent(s): f782471

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -70,7 +70,8 @@ suggestion_demo = gr.Interface(
70
  with gr.Blocks() as manual_label_demo:
71
  generate_btn = gr.Button('Show me a headline!')
72
  generate_btn.click(fn=manual_label, outputs=[gr.Textbox(label="News Headline"),gr.Textbox(label="Our Predicted Sentiment")])
73
- output = gr.Dropdown(["Positive","Negative","Neutral"], label="Select the true sentiment of the news article.")
 
74
 
75
  manual_label_demo1 = gr.Interface(
76
  fn=thanks,
 
70
  with gr.Blocks() as manual_label_demo:
71
  generate_btn = gr.Button('Show me a headline!')
72
  generate_btn.click(fn=manual_label, outputs=[gr.Textbox(label="News Headline"),gr.Textbox(label="Our Predicted Sentiment")])
73
+ drop_down_label = gr.Dropdown(["Positive","Negative","Neutral"], label="Select the true sentiment of the news article.")
74
+ submit_btn.click(fn=thanks, inputs=drop_down_label)
75
 
76
  manual_label_demo1 = gr.Interface(
77
  fn=thanks,