Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,17 +17,17 @@ def analyze_sentiment(text):
|
|
| 17 |
with gr.Blocks() as demo:
|
| 18 |
gr.Markdown("## Sentiment Analysis Demo")
|
| 19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
with gr.Row():
|
| 21 |
input_text = gr.Textbox(
|
| 22 |
label="Enter your text here",
|
| 23 |
placeholder="Type or paste your text...",
|
| 24 |
-
lines=3
|
| 25 |
-
examples=[
|
| 26 |
-
"I love this product! It's amazing!",
|
| 27 |
-
"This was the worst experience I've ever had.",
|
| 28 |
-
"The movie was okay, not great but not bad either.",
|
| 29 |
-
"Absolutely fantastic! I would recommend it to everyone."
|
| 30 |
-
]
|
| 31 |
)
|
| 32 |
|
| 33 |
with gr.Row():
|
|
|
|
| 17 |
with gr.Blocks() as demo:
|
| 18 |
gr.Markdown("## Sentiment Analysis Demo")
|
| 19 |
|
| 20 |
+
gr.Markdown("##### Example Inputs:")
|
| 21 |
+
gr.Markdown("- \"I love this product! It's amazing!\"")
|
| 22 |
+
gr.Markdown("- \"This was the worst experience I've ever had.\"")
|
| 23 |
+
gr.Markdown("- \"The movie was okay, not great but not bad either.\"")
|
| 24 |
+
gr.Markdown("- \"Absolutely fantastic! I would recommend it to everyone.\"")
|
| 25 |
+
|
| 26 |
with gr.Row():
|
| 27 |
input_text = gr.Textbox(
|
| 28 |
label="Enter your text here",
|
| 29 |
placeholder="Type or paste your text...",
|
| 30 |
+
lines=3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
)
|
| 32 |
|
| 33 |
with gr.Row():
|