torileatherman commited on
Commit
4ebc80e
·
1 Parent(s): 79b77b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -63,13 +63,14 @@ suggestion_demo = gr.Interface(
63
  fn=article_selection,
64
  title = 'Recommending News Articles',
65
  inputs = gr.Dropdown(["Positive","Negative","Neutral"], label="What type of news articles would you like recommended?"),
66
- outputs = [gr.Textbox(label="Recommended News Articles"),gr.Textbox(),gr.Textbox()],
67
  description = description1
68
  )
69
 
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
 
74
  manual_label_demo1 = gr.Interface(
75
  fn=thanks,
 
63
  fn=article_selection,
64
  title = 'Recommending News Articles',
65
  inputs = gr.Dropdown(["Positive","Negative","Neutral"], label="What type of news articles would you like recommended?"),
66
+ outputs = [gr.Textbox(label="Recommended News Articles (1/3)"),gr.Textbox(label="Recommended News Articles (2/3)"),gr.Textbox(label="Recommended News Articles (3/3)")],
67
  description = description1
68
  )
69
 
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,