torileatherman commited on
Commit
7ab8162
·
1 Parent(s): 9c2eab2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -8
app.py CHANGED
@@ -71,14 +71,9 @@ with gr.Blocks() as manual_label_demo:
71
  description = description2
72
  generate_btn = gr.Button('Show me a headline!')
73
  generate_btn.click(fn=manual_label, outputs=[gr.Textbox(label="News Headline"),gr.Textbox(label="Our Predicted Sentiment")])
74
- nested = gr.Interface(
75
- inputs = gr.Dropdown(["Positive","Negative","Neutral"], label="Select the true sentiment of the news article."),
76
- outputs = gr.Textbox(),
77
- fn = thanks,
78
- )
79
- #drop_down_label = gr.Dropdown(["Positive","Negative","Neutral"], label="Select the true sentiment of the news article.")
80
- #submit_btn = gr.Button('Submit your sentiment!')
81
- #submit_btn.click(fn=thanks, inputs=drop_down_label, outputs=gr.Textbox())
82
 
83
  manual_label_demo1 = gr.Interface(
84
  fn=thanks,
 
71
  description = description2
72
  generate_btn = gr.Button('Show me a headline!')
73
  generate_btn.click(fn=manual_label, outputs=[gr.Textbox(label="News Headline"),gr.Textbox(label="Our Predicted Sentiment")])
74
+ drop_down_label = gr.Dropdown(["Positive","Negative","Neutral"], label="Select the true sentiment of the news article.")
75
+ submit_btn = gr.Button('Submit your sentiment!')
76
+ submit_btn.click(fn=thanks, inputs=drop_down_label, outputs=gr.Textbox())
 
 
 
 
 
77
 
78
  manual_label_demo1 = gr.Interface(
79
  fn=thanks,