leavoigt commited on
Commit
38ca272
1 Parent(s): 9f5b6c4

Update appStore/vulnerability_analysis.py

Browse files
Files changed (1) hide show
  1. appStore/vulnerability_analysis.py +4 -0
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