leavoigt commited on
Commit
2df6f09
1 Parent(s): 785df60

Update utils/vulnerability_classifier.py

Browse files
Files changed (1) hide show
  1. utils/vulnerability_classifier.py +2 -4
utils/vulnerability_classifier.py CHANGED
@@ -136,10 +136,8 @@ def vulnerability_classification(haystack_doc:pd.DataFrame,
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']
 
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']