Spaces:
Runtime error
Runtime error
Commit
·
5a265b2
1
Parent(s):
b4aeeaf
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,7 +26,8 @@ def article_selection(sentiment):
|
|
| 26 |
return f"""The sentence you requested is Neutral!"""
|
| 27 |
|
| 28 |
def thanks():
|
| 29 |
-
|
|
|
|
| 30 |
|
| 31 |
description1 = '''
|
| 32 |
This application recommends news articles depending on the sentiment of the headline.
|
|
@@ -52,7 +53,7 @@ manual_label_demo = gr.Interface(
|
|
| 52 |
title="Manually Label a News Article",
|
| 53 |
inputs=[gr.Textbox(label = "Paste in URL of news article here."),
|
| 54 |
gr.Dropdown(["Positive","Negative","Neutral"], label="Select the sentiment of the news article.")],
|
| 55 |
-
outputs = gr.Textbox(),
|
| 56 |
description = description1
|
| 57 |
)
|
| 58 |
|
|
|
|
| 26 |
return f"""The sentence you requested is Neutral!"""
|
| 27 |
|
| 28 |
def thanks():
|
| 29 |
+
thanks_text = "Thank you for making our model better!"
|
| 30 |
+
return thanks_text
|
| 31 |
|
| 32 |
description1 = '''
|
| 33 |
This application recommends news articles depending on the sentiment of the headline.
|
|
|
|
| 53 |
title="Manually Label a News Article",
|
| 54 |
inputs=[gr.Textbox(label = "Paste in URL of news article here."),
|
| 55 |
gr.Dropdown(["Positive","Negative","Neutral"], label="Select the sentiment of the news article.")],
|
| 56 |
+
outputs = gr.Textbox(label="Output"),
|
| 57 |
description = description1
|
| 58 |
)
|
| 59 |
|