Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,8 @@ if text:
|
|
30 |
out = pipe(text)
|
31 |
df = get_sentiment(out[0])
|
32 |
fig, ax = plt.subplots()
|
33 |
-
|
|
|
34 |
|
35 |
st.pyplot(fig)
|
36 |
|
|
|
30 |
out = pipe(text)
|
31 |
df = get_sentiment(out[0])
|
32 |
fig, ax = plt.subplots()
|
33 |
+
c = ['red', 'yellow', 'green']
|
34 |
+
ax.bar(df.index, df[0], color=c)
|
35 |
|
36 |
st.pyplot(fig)
|
37 |
|