leavoigt commited on
Commit
29705f2
1 Parent(s): 252ac9f

Update utils/target_classifier.py

Browse files
Files changed (1) hide show
  1. utils/target_classifier.py +3 -3
utils/target_classifier.py CHANGED
@@ -107,12 +107,12 @@ def target_classification(haystack_doc:pd.DataFrame,
107
 
108
  haystack_doc['Target Label'] = 'NA'
109
 
110
- if not classifier_model:
111
 
112
- classifier_model = st.session_state['target_classifier']
113
 
114
  # Get predictions
115
- predictions = classifier_model(list(haystack_doc.text))
116
  st.write('predictions')
117
  st.write(predictions[:10])
118
 
 
107
 
108
  haystack_doc['Target Label'] = 'NA'
109
 
110
+ if not target_classifier_model:
111
 
112
+ target_classifier_model = st.session_state['target_classifier']
113
 
114
  # Get predictions
115
+ predictions = target_classifier_model(list(haystack_doc.text))
116
  st.write('predictions')
117
  st.write(predictions[:10])
118