Update app.py
Browse files
app.py
CHANGED
@@ -129,31 +129,31 @@ if 'key0' in st.session_state:
|
|
129 |
|
130 |
with col2:
|
131 |
|
132 |
-
|
133 |
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
|
153 |
-
|
154 |
-
|
155 |
|
156 |
-
### Table
|
157 |
st.table(df_vul[df_vul['Vulnerability Label'] != 'Other'])
|
158 |
|
159 |
# vulnerability_analysis.vulnerability_display()
|
|
|
129 |
|
130 |
with col2:
|
131 |
|
132 |
+
# ### Pie chart
|
133 |
|
134 |
+
# ## Create a df that stores all the labels
|
135 |
+
# #df_labels = pd.DataFrame(list(label_dict.items()), columns=['Label ID', 'Label'])
|
136 |
+
|
137 |
+
# # Count how often each label appears in the "Vulnerability Labels" column
|
138 |
+
# label_counts = df_vul['Vulnerability Label'].value_counts().reset_index()
|
139 |
+
# label_counts.columns = ['Label', 'Count']
|
140 |
+
|
141 |
+
# # Merge the label counts with the df_label DataFrame
|
142 |
+
# df_labels = df_labels.merge(label_counts, on='Label', how='left')
|
143 |
+
|
144 |
+
# # Configure graph
|
145 |
+
# fig = px.pie(df_labels,
|
146 |
+
# names="Label",
|
147 |
+
# values="Count",
|
148 |
+
# title='Label Counts',
|
149 |
+
# hover_name="Count",
|
150 |
+
# color_discrete_sequence=px.colors.qualitative.Plotly
|
151 |
+
# )
|
152 |
|
153 |
+
# #Show plot
|
154 |
+
# st.plotly_chart(fig, use_container_width=True)
|
155 |
|
156 |
+
# ### Table
|
157 |
st.table(df_vul[df_vul['Vulnerability Label'] != 'Other'])
|
158 |
|
159 |
# vulnerability_analysis.vulnerability_display()
|