Spaces:
Sleeping
Sleeping
Update appStore/vulnerability_analysis.py
Browse files
appStore/vulnerability_analysis.py
CHANGED
@@ -73,8 +73,7 @@ def app():
|
|
73 |
threshold= params['threshold'])
|
74 |
|
75 |
# Filter the dataframe to only show the paragraphs with references
|
76 |
-
df_filtered = df[df['Vulnerability Label'].apply(lambda x: 'Other' not in x)]
|
77 |
-
|
78 |
|
79 |
# Store df in session state with key1
|
80 |
st.session_state.key1 = df_filtered
|
|
|
73 |
threshold= params['threshold'])
|
74 |
|
75 |
# Filter the dataframe to only show the paragraphs with references
|
76 |
+
df_filtered = df[df['Vulnerability Label'].apply(lambda x: len(x) > 0 and 'Other' not in x)]
|
|
|
77 |
|
78 |
# Store df in session state with key1
|
79 |
st.session_state.key1 = df_filtered
|