Spaces:
Build error
Build error
Update pages/1_Tweets_Visualization_π_.py
Browse files
pages/1_Tweets_Visualization_π_.py
CHANGED
|
@@ -62,7 +62,7 @@ try:
|
|
| 62 |
|
| 63 |
st.plotly_chart(fig)
|
| 64 |
|
| 65 |
-
with st.
|
| 66 |
st.subheader('Topic Distribution Scatter Plot')
|
| 67 |
## Display negative sentence locations
|
| 68 |
ht = df.tweet.apply(lambda txt: '<br>'.join(textwrap.wrap(txt, width=70)))
|
|
@@ -91,10 +91,6 @@ try:
|
|
| 91 |
plt.axis("off")
|
| 92 |
plt.show()
|
| 93 |
st.pyplot()
|
| 94 |
-
|
| 95 |
-
else:
|
| 96 |
-
|
| 97 |
-
st.warning("No Tweets detected, please navigate to Home page and refresh tweet stream",icon="β οΈ")
|
| 98 |
|
| 99 |
except (AttributeError, KeyError) as e:
|
| 100 |
|
|
|
|
| 62 |
|
| 63 |
st.plotly_chart(fig)
|
| 64 |
|
| 65 |
+
with st.container():
|
| 66 |
st.subheader('Topic Distribution Scatter Plot')
|
| 67 |
## Display negative sentence locations
|
| 68 |
ht = df.tweet.apply(lambda txt: '<br>'.join(textwrap.wrap(txt, width=70)))
|
|
|
|
| 91 |
plt.axis("off")
|
| 92 |
plt.show()
|
| 93 |
st.pyplot()
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
|
| 95 |
except (AttributeError, KeyError) as e:
|
| 96 |
|