Spaces:
Runtime error
Runtime error
Commit
·
768cc89
1
Parent(s):
b360479
Update app.py
Browse files
app.py
CHANGED
@@ -101,5 +101,11 @@ if submitted:
|
|
101 |
fig, axs = plt.subplots(1, 2, figsize=(12, 6))
|
102 |
axs[0].hexbin(tweets['tweet_length'], tweets['sentiment']*1,
|
103 |
gridsize=20, bins=12, cmap='inferno')
|
|
|
|
|
|
|
104 |
axs[1].scatter(tweets['tweet_length'], tweets['sentiment'])
|
|
|
|
|
|
|
105 |
st.pyplot(fig)
|
|
|
101 |
fig, axs = plt.subplots(1, 2, figsize=(12, 6))
|
102 |
axs[0].hexbin(tweets['tweet_length'], tweets['sentiment']*1,
|
103 |
gridsize=20, bins=12, cmap='inferno')
|
104 |
+
axs[0].set_title('Tweet Sentiment and Length')
|
105 |
+
axs[0].xlabel('Tweet Length')
|
106 |
+
axs[0].ylabel('Sentiment')
|
107 |
axs[1].scatter(tweets['tweet_length'], tweets['sentiment'])
|
108 |
+
axs[1].set_title('Tweet Sentiment vs Length')
|
109 |
+
axs[1].xlabel('Tweet Length')
|
110 |
+
axs[1].ylabel('Sentiment')
|
111 |
st.pyplot(fig)
|