Spaces:
Sleeping
Sleeping
vickeee465
commited on
Commit
·
7b8cad9
1
Parent(s):
bdce241
debugging heatmap transposing thing
Browse files
app.py
CHANGED
|
@@ -101,7 +101,7 @@ def prepare_heatmap_data(data):
|
|
| 101 |
|
| 102 |
|
| 103 |
def plot_emotion_heatmap(heatmap_data):
|
| 104 |
-
heatmap_data = heatmap_data.T # Transpose to: rows = emotions, cols = sentences
|
| 105 |
|
| 106 |
# Normalize all values to [0, 1] for each emotion
|
| 107 |
normalized_data = heatmap_data.copy()
|
|
|
|
| 101 |
|
| 102 |
|
| 103 |
def plot_emotion_heatmap(heatmap_data):
|
| 104 |
+
# heatmap_data = heatmap_data.T # Transpose to: rows = emotions, cols = sentences
|
| 105 |
|
| 106 |
# Normalize all values to [0, 1] for each emotion
|
| 107 |
normalized_data = heatmap_data.copy()
|