Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
demo = gr.Interface(
|
2 |
+
theme=gr.themes.Base(),
|
3 |
+
fn=sentiment_analysis,
|
4 |
+
inputs=gr.Textbox(placeholder="Write your text here..."),
|
5 |
+
outputs="label",
|
6 |
+
examples=[
|
7 |
+
["I'm thrilled about the job offer!"],
|
8 |
+
["The weather today is absolutely beautiful."],
|
9 |
+
["I had a fantastic time at the concert last night."],
|
10 |
+
["I'm so frustrated with this software glitch."],
|
11 |
+
["The customer service was terrible at the store."],
|
12 |
+
["I'm really disappointed with the quality of this product."]
|
13 |
+
],
|
14 |
+
title='Sentiment Analysis App',
|
15 |
+
description='This app classifies a positive, neutral, or negative sentiment.'
|
16 |
+
)
|
17 |
+
demo.launch()
|