Update appStore/target.py
Browse files- appStore/target.py +6 -1
appStore/target.py
CHANGED
@@ -58,9 +58,11 @@ def app():
|
|
58 |
with st.container():
|
59 |
|
60 |
if 'key1' in st.session_state:
|
61 |
-
|
62 |
# Load the existing dataset
|
63 |
df = st.session_state.key1
|
|
|
|
|
64 |
|
65 |
# Load the classifier model
|
66 |
classifier = load_targetClassifier(classifier_name=params['model_name'])
|
@@ -73,6 +75,9 @@ def app():
|
|
73 |
|
74 |
df = target_classification(haystack_doc=df,
|
75 |
threshold= params['threshold'])
|
|
|
|
|
|
|
76 |
st.session_state.key1 = df
|
77 |
|
78 |
|
|
|
58 |
with st.container():
|
59 |
|
60 |
if 'key1' in st.session_state:
|
61 |
+
|
62 |
# Load the existing dataset
|
63 |
df = st.session_state.key1
|
64 |
+
st.write("This is key 1 - utils")
|
65 |
+
st.write(df.head())
|
66 |
|
67 |
# Load the classifier model
|
68 |
classifier = load_targetClassifier(classifier_name=params['model_name'])
|
|
|
75 |
|
76 |
df = target_classification(haystack_doc=df,
|
77 |
threshold= params['threshold'])
|
78 |
+
|
79 |
+
st.write("This is the second part")
|
80 |
+
st.write(df)
|
81 |
st.session_state.key1 = df
|
82 |
|
83 |
|