Spaces:
Sleeping
Sleeping
kovacsvi
commited on
Commit
·
73953d0
1
Parent(s):
3ed00cb
text
Browse files
app.py
CHANGED
|
@@ -179,9 +179,7 @@ def plot_average_emotion_barplot(heatmap_data):
|
|
| 179 |
colors = [emotion_colors[label] for label in labels]
|
| 180 |
|
| 181 |
fig, ax = plt.subplots(figsize=(8, 6))
|
| 182 |
-
bars = sns.barplot(
|
| 183 |
-
x=list(scores), y=list(labels), palette=colors, ax=ax
|
| 184 |
-
)
|
| 185 |
|
| 186 |
ax.xaxis.set_major_formatter(PercentFormatter(xmax=1.0, decimals=0))
|
| 187 |
|
|
@@ -264,7 +262,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 264 |
)
|
| 265 |
with gr.Column(scale=3):
|
| 266 |
gr.Markdown(
|
| 267 |
-
"This table shows the
|
| 268 |
elem_classes="info",
|
| 269 |
)
|
| 270 |
|
|
|
|
| 179 |
colors = [emotion_colors[label] for label in labels]
|
| 180 |
|
| 181 |
fig, ax = plt.subplots(figsize=(8, 6))
|
| 182 |
+
bars = sns.barplot(x=list(scores), y=list(labels), palette=colors, ax=ax)
|
|
|
|
|
|
|
| 183 |
|
| 184 |
ax.xaxis.set_major_formatter(PercentFormatter(xmax=1.0, decimals=0))
|
| 185 |
|
|
|
|
| 262 |
)
|
| 263 |
with gr.Column(scale=3):
|
| 264 |
gr.Markdown(
|
| 265 |
+
"This table shows the two most probable emotions detected in each sentence, along with how confident our predictions are. For all emotions check the heatmap below.",
|
| 266 |
elem_classes="info",
|
| 267 |
)
|
| 268 |
|