Update app.py
Browse files
app.py
CHANGED
@@ -58,8 +58,8 @@ def read_tf(url):
|
|
58 |
preprocessing = pickle.load(f)
|
59 |
return preprocessing
|
60 |
|
61 |
-
svm_classifier = read_model("https://github.com/manika-lamba/ml/raw/main/category/
|
62 |
-
preprocessing = read_tf("https://github.com/manika-lamba/ml/raw/main/category/
|
63 |
|
64 |
# Function to predict the category for a given abstract
|
65 |
def predict_category(abstract):
|
|
|
58 |
preprocessing = pickle.load(f)
|
59 |
return preprocessing
|
60 |
|
61 |
+
svm_classifier = read_model("https://github.com/manika-lamba/ml/raw/main/category/model-topics.pkl")
|
62 |
+
preprocessing = read_tf("https://github.com/manika-lamba/ml/raw/main/category/tfidf-topics.pkl")
|
63 |
|
64 |
# Function to predict the category for a given abstract
|
65 |
def predict_category(abstract):
|