leavoigt commited on
Commit
b758017
1 Parent(s): af925e8

Update utils/vulnerability_classifier.py

Browse files
Files changed (1) hide show
  1. utils/vulnerability_classifier.py +4 -2
utils/vulnerability_classifier.py CHANGED
@@ -136,8 +136,10 @@ def vulnerability_classification(haystack_doc:pd.DataFrame,
136
 
137
 
138
  pred_labels = getlabels(predictions)
139
-
140
- haystack_doc['Vulnerability Label'] = pred_labels
 
 
141
  # placeholder = {}
142
  # for j in range(len(temp)):
143
  # placeholder[temp[j]['label']] = temp[j]['score']
 
136
 
137
 
138
  pred_labels = getlabels(predictions)
139
+ st.write(len(pred_labels))
140
+ st.write(pred_labels)
141
+ st.write(len(haystack_doc))
142
+ # haystack_doc['Vulnerability Label'] = pred_labels
143
  # placeholder = {}
144
  # for j in range(len(temp)):
145
  # placeholder[temp[j]['label']] = temp[j]['score']