leavoigt commited on
Commit
ed00025
1 Parent(s): 73f34f0

Update utils/target_classifier.py

Browse files
Files changed (1) hide show
  1. utils/target_classifier.py +4 -1
utils/target_classifier.py CHANGED
@@ -112,9 +112,12 @@ def target_classification(haystack_doc:pd.DataFrame,
112
 
113
  # Get predictions
114
  predictions = classifier_model(list(haystack_doc.text))
 
 
115
 
116
  # Get labels for predictions
117
- pred_labels = gettarget_labels(predictions)
 
118
 
119
  # Save labels
120
  haystack_doc['Target Label'] = pred_labels
 
112
 
113
  # Get predictions
114
  predictions = classifier_model(list(haystack_doc.text))
115
+ st.write("predictions")
116
+ st.write(predictions)
117
 
118
  # Get labels for predictions
119
+ pred_labels = get_target_labels(predictions)
120
+ st.write(pred_labels)
121
 
122
  # Save labels
123
  haystack_doc['Target Label'] = pred_labels