leavoigt commited on
Commit
0a2b1df
1 Parent(s): dbd62d7

Update appStore/target.py

Browse files
Files changed (1) hide show
  1. appStore/target.py +4 -1
appStore/target.py CHANGED
@@ -65,7 +65,10 @@ def app():
65
  classifier = load_targetClassifier(classifier_name=params['model_name'])
66
  st.session_state['{}_classifier'.format(classifier_identifier)] = classifier
67
 
68
-
 
 
 
69
  df = target_classification(haystack_doc=df,
70
  threshold= params['threshold'])
71
  st.session_state.key1 = df
 
65
  classifier = load_targetClassifier(classifier_name=params['model_name'])
66
  st.session_state['{}_classifier'.format(classifier_identifier)] = classifier
67
 
68
+ # test
69
+ if "target_classifier" not in session_state:
70
+ print("target classifier not saved :(")
71
+
72
  df = target_classification(haystack_doc=df,
73
  threshold= params['threshold'])
74
  st.session_state.key1 = df