Spaces:
Runtime error
Runtime error
Commit
·
3c22553
1
Parent(s):
fe08354
Update app.py
Browse files
app.py
CHANGED
@@ -23,12 +23,16 @@ def article_selection(sentiment):
|
|
23 |
else:
|
24 |
return f"""The sentence you requested is Neutral!"""
|
25 |
|
26 |
-
|
|
|
|
|
|
|
27 |
|
28 |
demo = gr.Interface(
|
29 |
fn=article_selection,
|
30 |
inputs = gr.Dropdown(["Positive","Negative","Neutral"], label="What type of news articles would you like recommended?"),
|
31 |
-
outputs = "Recommended News Articles"
|
|
|
32 |
)
|
33 |
|
34 |
|
|
|
23 |
else:
|
24 |
return f"""The sentence you requested is Neutral!"""
|
25 |
|
26 |
+
description = '''
|
27 |
+
This application recommends news articles depending on the sentiment of the headline.
|
28 |
+
Enter your preference of what type of news articles you would like recommended to you today: Positive, Negative, or Neutral.
|
29 |
+
'''
|
30 |
|
31 |
demo = gr.Interface(
|
32 |
fn=article_selection,
|
33 |
inputs = gr.Dropdown(["Positive","Negative","Neutral"], label="What type of news articles would you like recommended?"),
|
34 |
+
outputs = gr.Textbox(label="Recommended News Articles")
|
35 |
+
description = description
|
36 |
)
|
37 |
|
38 |
|