thushalya
commited on
Commit
·
624b97d
1
Parent(s):
388d874
Add Emotions and Values
Browse files
app.py
CHANGED
|
@@ -374,8 +374,8 @@ def greet(tweet):
|
|
| 374 |
preemotion_list = [x * 100 for x in preemotion_list]
|
| 375 |
simple = pd.DataFrame(
|
| 376 |
{
|
| 377 |
-
"
|
| 378 |
-
"
|
| 379 |
}
|
| 380 |
)
|
| 381 |
# with gr.Blocks() as bar_plot:
|
|
@@ -421,7 +421,7 @@ demo = gr.Interface(
|
|
| 421 |
x="Emotions",
|
| 422 |
y="Values",
|
| 423 |
title="Simple Bar Plot with made up data",
|
| 424 |
-
|
| 425 |
y_lim=[20, 100],
|
| 426 |
)
|
| 427 |
],
|
|
|
|
| 374 |
preemotion_list = [x * 100 for x in preemotion_list]
|
| 375 |
simple = pd.DataFrame(
|
| 376 |
{
|
| 377 |
+
"Emotions": ["Anger", "Anticipation", "Disgust", "Fear", "Joy", "Love", "Optimism", "Pessimism", "Sadness","Surprise","Trust"],
|
| 378 |
+
"Values": preemotion_list,
|
| 379 |
}
|
| 380 |
)
|
| 381 |
# with gr.Blocks() as bar_plot:
|
|
|
|
| 421 |
x="Emotions",
|
| 422 |
y="Values",
|
| 423 |
title="Simple Bar Plot with made up data",
|
| 424 |
+
tooltip=["Emotions", "Values"],
|
| 425 |
y_lim=[20, 100],
|
| 426 |
)
|
| 427 |
],
|