Update appStore/category.py
Browse files- appStore/category.py +2 -2
appStore/category.py
CHANGED
@@ -8,7 +8,7 @@ import matplotlib.pyplot as plt
|
|
8 |
import numpy as np
|
9 |
import pandas as pd
|
10 |
import streamlit as st
|
11 |
-
from utils.
|
12 |
import logging
|
13 |
logger = logging.getLogger(__name__)
|
14 |
from utils.config import get_classifier_params
|
@@ -29,7 +29,7 @@ def app():
|
|
29 |
df = st.session_state.key1
|
30 |
|
31 |
# Load the classifier model
|
32 |
-
classifier =
|
33 |
st.session_state['{}_classifier'.format(classifier_identifier)] = classifier
|
34 |
|
35 |
df = netzero_classification(haystack_doc=df,
|
|
|
8 |
import numpy as np
|
9 |
import pandas as pd
|
10 |
import streamlit as st
|
11 |
+
from utils.category_classifier import load_categoryClassifier, category_classification
|
12 |
import logging
|
13 |
logger = logging.getLogger(__name__)
|
14 |
from utils.config import get_classifier_params
|
|
|
29 |
df = st.session_state.key1
|
30 |
|
31 |
# Load the classifier model
|
32 |
+
classifier = load_categoryClassifier(classifier_name=params['model_name'])
|
33 |
st.session_state['{}_classifier'.format(classifier_identifier)] = classifier
|
34 |
|
35 |
df = netzero_classification(haystack_doc=df,
|