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