SuchithTissera commited on
Commit
a3074a0
·
verified ·
1 Parent(s): a1f8e31

Update pages/2_Analysis.py

Browse files
Files changed (1) hide show
  1. 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 th page
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
- st.plotly_chart(fig_pie, use_container_width=True)
 
 
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)