Spaces:
Sleeping
Sleeping
vkovacs
commited on
Commit
·
19f9974
1
Parent(s):
2fdfd03
removed title
Browse files
app.py
CHANGED
|
@@ -89,7 +89,6 @@ def prepare_heatmap_data(data):
|
|
| 89 |
def plot_emotion_heatmap(heatmap_data):
|
| 90 |
fig = plt.figure(figsize=(len(heatmap_data.columns) * 0.5 + 2, 5))
|
| 91 |
sns.heatmap(heatmap_data, annot=False, cmap="coolwarm", cbar=True, linewidths=0.5, linecolor='gray')
|
| 92 |
-
plt.title("Sentence-level emotion confidences", fontsize=12)
|
| 93 |
plt.xlabel("Sentences")
|
| 94 |
plt.ylabel("Emotions")
|
| 95 |
plt.xticks(rotation=45)
|
|
|
|
| 89 |
def plot_emotion_heatmap(heatmap_data):
|
| 90 |
fig = plt.figure(figsize=(len(heatmap_data.columns) * 0.5 + 2, 5))
|
| 91 |
sns.heatmap(heatmap_data, annot=False, cmap="coolwarm", cbar=True, linewidths=0.5, linecolor='gray')
|
|
|
|
| 92 |
plt.xlabel("Sentences")
|
| 93 |
plt.ylabel("Emotions")
|
| 94 |
plt.xticks(rotation=45)
|