Spaces:
Runtime error
Runtime error
Commit
·
79b77b1
1
Parent(s):
87d0433
Update app.py
Browse files
app.py
CHANGED
@@ -67,7 +67,7 @@ suggestion_demo = gr.Interface(
|
|
67 |
description = description1
|
68 |
)
|
69 |
|
70 |
-
with gr.Blocks() as
|
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 |
|
@@ -81,7 +81,7 @@ manual_label_demo1 = gr.Interface(
|
|
81 |
)
|
82 |
|
83 |
|
84 |
-
|
85 |
|
86 |
|
87 |
demo.launch()
|
|
|
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 |
|
|
|
81 |
)
|
82 |
|
83 |
|
84 |
+
demo = gr.TabbedInterface([suggestion_demo, manual_label_demo], ["Get recommended news articles", "Help improve our model"])
|
85 |
|
86 |
|
87 |
demo.launch()
|