Spaces:
Sleeping
Sleeping
Update pages/2_Analysis.py
Browse files- pages/2_Analysis.py +6 -3
pages/2_Analysis.py
CHANGED
|
@@ -20,8 +20,8 @@ st.markdown("""
|
|
| 20 |
</div>
|
| 21 |
""", unsafe_allow_html=True)
|
| 22 |
|
| 23 |
-
#dividing
|
| 24 |
-
st.divider
|
| 25 |
|
| 26 |
#getting the csv file from the classification page
|
| 27 |
if "uploaded_content" not in st.session_state:
|
|
@@ -86,6 +86,8 @@ fig.update_layout(xaxis_title="<b>Category</b>", yaxis_title="<b>Count</b>", col
|
|
| 86 |
#displaying the bar chart
|
| 87 |
st.plotly_chart(fig, use_container_width=True)
|
| 88 |
|
|
|
|
|
|
|
| 89 |
#3.carrying out the pie chart
|
| 90 |
st.subheader("Word Frequency Analysis")
|
| 91 |
all_words = " ".join(uploaded_content["pre-processed"].astype(str)).split()
|
|
@@ -102,4 +104,5 @@ fig_pie = px.pie(
|
|
| 102 |
color_discrete_sequence=px.colors.sequential.Blues_r
|
| 103 |
)
|
| 104 |
fig_pie.update_traces(textinfo='percent+label', marker=dict(line=dict(color='#FFFFFF', width=2)))
|
| 105 |
-
|
|
|
|
|
|
| 20 |
</div>
|
| 21 |
""", unsafe_allow_html=True)
|
| 22 |
|
| 23 |
+
#dividing the page
|
| 24 |
+
st.divider()
|
| 25 |
|
| 26 |
#getting the csv file from the classification page
|
| 27 |
if "uploaded_content" not in st.session_state:
|
|
|
|
| 86 |
#displaying the bar chart
|
| 87 |
st.plotly_chart(fig, use_container_width=True)
|
| 88 |
|
| 89 |
+
st.divider()
|
| 90 |
+
|
| 91 |
#3.carrying out the pie chart
|
| 92 |
st.subheader("Word Frequency Analysis")
|
| 93 |
all_words = " ".join(uploaded_content["pre-processed"].astype(str)).split()
|
|
|
|
| 104 |
color_discrete_sequence=px.colors.sequential.Blues_r
|
| 105 |
)
|
| 106 |
fig_pie.update_traces(textinfo='percent+label', marker=dict(line=dict(color='#FFFFFF', width=2)))
|
| 107 |
+
#displaying the pie chart
|
| 108 |
+
st.plotly_chart(fig_pie, use_container_width=True)
|