Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -118,7 +118,7 @@ def visualize_data(df: pd.DataFrame):
|
|
118 |
data = df['label'].value_counts()
|
119 |
fig, ax = plt.subplots()
|
120 |
plt.title("Эмоциональная окраска комментариев на YouTube")
|
121 |
-
label =
|
122 |
ax.pie(data, labels=label, autopct='%1.1f%%')
|
123 |
return fig
|
124 |
|
|
|
118 |
data = df['label'].value_counts()
|
119 |
fig, ax = plt.subplots()
|
120 |
plt.title("Эмоциональная окраска комментариев на YouTube")
|
121 |
+
label = data.index
|
122 |
ax.pie(data, labels=label, autopct='%1.1f%%')
|
123 |
return fig
|
124 |
|