Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,8 +26,8 @@ def sentiment_pie_chart(df):
|
|
| 26 |
|
| 27 |
# Create a pie chart
|
| 28 |
fig, ax = plt.subplots()
|
| 29 |
-
sentiment_counts.plot(kind='pie',
|
| 30 |
-
ax.set_title('Review Sentiment
|
| 31 |
|
| 32 |
return fig
|
| 33 |
|
|
|
|
| 26 |
|
| 27 |
# Create a pie chart
|
| 28 |
fig, ax = plt.subplots()
|
| 29 |
+
sentiment_counts.plot(kind='pie', autopct='%1.1f%%', color=['green', 'red'])
|
| 30 |
+
ax.set_title('Review Sentiment Chart')
|
| 31 |
|
| 32 |
return fig
|
| 33 |
|