Spaces:
Build error
Build error
Update pages/1_Tweets_Visualization_π_.py
Browse files
pages/1_Tweets_Visualization_π_.py
CHANGED
|
@@ -82,11 +82,6 @@ try:
|
|
| 82 |
)
|
| 83 |
|
| 84 |
st.plotly_chart(fig)
|
| 85 |
-
|
| 86 |
-
with st.container():
|
| 87 |
-
st.subheader('Topic Density Heatmap')
|
| 88 |
-
fig = px.density_heatmap(df, x='creation_time', y='topic')
|
| 89 |
-
st.plotly_chart(fig)
|
| 90 |
|
| 91 |
with st.container():
|
| 92 |
st.subheader('Sentiment WordCloud')
|
|
@@ -101,6 +96,8 @@ try:
|
|
| 101 |
|
| 102 |
st.warning("No Tweets detected, please navigate to Home page and refresh tweet stream",icon="β οΈ")
|
| 103 |
|
| 104 |
-
except (AttributeError, KeyError):
|
|
|
|
|
|
|
| 105 |
|
| 106 |
st.error('Tweets Error, please navigate to Home page and refresh tweet stream', icon="π¨")
|
|
|
|
| 82 |
)
|
| 83 |
|
| 84 |
st.plotly_chart(fig)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 85 |
|
| 86 |
with st.container():
|
| 87 |
st.subheader('Sentiment WordCloud')
|
|
|
|
| 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 |
+
|
| 101 |
+
print(e)
|
| 102 |
|
| 103 |
st.error('Tweets Error, please navigate to Home page and refresh tweet stream', icon="π¨")
|