Spaces:
Sleeping
Sleeping
Update appStore/vulnerability_analysis.py
Browse files
appStore/vulnerability_analysis.py
CHANGED
@@ -72,6 +72,10 @@ def app():
|
|
72 |
df = vulnerability_classification(haystack_doc=df,
|
73 |
threshold= params['threshold'])
|
74 |
|
|
|
|
|
|
|
|
|
75 |
# Store df in session state with key1
|
76 |
st.session_state.key1 = df
|
77 |
|
|
|
72 |
df = vulnerability_classification(haystack_doc=df,
|
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
|
81 |
|