Spaces:
Sleeping
Sleeping
vickeee465
commited on
Commit
·
9bd2d81
1
Parent(s):
8d02664
variable name 2
Browse files
app.py
CHANGED
|
@@ -95,7 +95,7 @@ def prepare_heatmap_data(data):
|
|
| 95 |
return heatmap_data
|
| 96 |
|
| 97 |
def plot_emotion_heatmap(heatmap_data):
|
| 98 |
-
fig = plt.figure(figsize=(10, len(
|
| 99 |
sns.heatmap(heatmap_data, annot=True, cmap="coolwarm", cbar=True, linewidths=0.5, linecolor='gray')
|
| 100 |
plt.title("Emotion Confidence Heatmap")
|
| 101 |
plt.xlabel("Emotions")
|
|
|
|
| 95 |
return heatmap_data
|
| 96 |
|
| 97 |
def plot_emotion_heatmap(heatmap_data):
|
| 98 |
+
fig = plt.figure(figsize=(10, len(heatmap_data) * 0.5 + 2))
|
| 99 |
sns.heatmap(heatmap_data, annot=True, cmap="coolwarm", cbar=True, linewidths=0.5, linecolor='gray')
|
| 100 |
plt.title("Emotion Confidence Heatmap")
|
| 101 |
plt.xlabel("Emotions")
|