torileatherman commited on
Commit
8734074
·
1 Parent(s): 17bb07c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -65,10 +65,9 @@ suggestion_demo = gr.Interface(
65
  description = description1
66
  )
67
 
68
- with gr.Blocks() as manual_label_demo:
69
- output = [gr.Textbox(label="News Headline"),gr.Textbox(label="Our Predicted Sentiment")],
70
  generate_btn = gr.Button('Show me a headline!')
71
- generate_btn.click(fn=manual_label, outputs=output)
72
 
73
  manual_label_demo1 = gr.Interface(
74
  fn=thanks,
@@ -80,7 +79,7 @@ manual_label_demo1 = gr.Interface(
80
  )
81
 
82
 
83
- demo = gr.TabbedInterface([suggestion_demo, manual_label_demo], ["Get recommended news articles", "Help improve our model"])
84
 
85
 
86
- #demo.launch()
 
65
  description = description1
66
  )
67
 
68
+ with gr.Blocks() as demo:
 
69
  generate_btn = gr.Button('Show me a headline!')
70
+ generate_btn.click(fn=manual_label, outputs=[gr.Textbox(label="News Headline"),gr.Textbox(label="Our Predicted Sentiment")])
71
 
72
  manual_label_demo1 = gr.Interface(
73
  fn=thanks,
 
79
  )
80
 
81
 
82
+ #demo = gr.TabbedInterface([suggestion_demo, manual_label_demo], ["Get recommended news articles", "Help improve our model"])
83
 
84
 
85
+ demo.launch()