torileatherman commited on
Commit
d574554
·
1 Parent(s): e831013

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -72,13 +72,13 @@ with gr.Blocks() as manual_label_demo:
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 =
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,
 
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,