Spaces:
Running
Running
Update utils/target_classifier.py
Browse files
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 =
|
|
|
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
|