Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -113,13 +113,13 @@ if 'key0' in st.session_state:
|
|
113 |
# Create a df that stores how often the labels appear
|
114 |
df_count = pd.DataFrame(list(label_dict.items()), columns=['Label ID', 'Label'])
|
115 |
|
116 |
-
# Count how often each label appears in the "Vulnerability Labels" column
|
117 |
-
label_counts = st.session_state['key0']['Vulnerability Labels'].value_counts().reset_index()
|
118 |
-
label_counts.columns = ['Label', 'Count']
|
119 |
|
120 |
-
# Merge the label counts with the df_label DataFrame
|
121 |
-
df_label = df_label.merge(label_counts, on='Label', how='left')
|
122 |
-
st.write(df_label)
|
123 |
#bar_data = st.session_state['key0']
|
124 |
|
125 |
|
|
|
113 |
# Create a df that stores how often the labels appear
|
114 |
df_count = pd.DataFrame(list(label_dict.items()), columns=['Label ID', 'Label'])
|
115 |
|
116 |
+
# # Count how often each label appears in the "Vulnerability Labels" column
|
117 |
+
# label_counts = st.session_state['key0']['Vulnerability Labels'].value_counts().reset_index()
|
118 |
+
# label_counts.columns = ['Label', 'Count']
|
119 |
|
120 |
+
# # Merge the label counts with the df_label DataFrame
|
121 |
+
# df_label = df_label.merge(label_counts, on='Label', how='left')
|
122 |
+
# st.write(df_label)
|
123 |
#bar_data = st.session_state['key0']
|
124 |
|
125 |
|