torileatherman commited on
Commit
d535e9a
·
1 Parent(s): 12c852b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -65,7 +65,7 @@ suggestion_demo = gr.Interface(
65
  description = description1
66
  )
67
 
68
- manual_label_demo = with gr.Blocks() as 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)
@@ -83,4 +83,4 @@ manual_label_demo1 = gr.Interface(
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 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)
 
83
  demo = gr.TabbedInterface([suggestion_demo, manual_label_demo], ["Get recommended news articles", "Help improve our model"])
84
 
85
 
86
+ #demo.launch()