Update app.py
Browse files
app.py
CHANGED
@@ -20,8 +20,8 @@ def read_tf(url):
|
|
20 |
preprocessing = pickle.load(f)
|
21 |
return preprocessing
|
22 |
|
23 |
-
svm_classifier = read_model("https://github.com/manika-lamba/ml/
|
24 |
-
preprocessing = read_tf("https://github.com/manika-lamba/ml/
|
25 |
|
26 |
# Function to predict the category for a given abstract
|
27 |
def predict_category(abstract):
|
|
|
20 |
preprocessing = pickle.load(f)
|
21 |
return preprocessing
|
22 |
|
23 |
+
svm_classifier = read_model("https://github.com/manika-lamba/ml/raw/main/model-topics.pkl")
|
24 |
+
preprocessing = read_tf("https://github.com/manika-lamba/ml/raw/main/tfidf-topics.pkl")
|
25 |
|
26 |
# Function to predict the category for a given abstract
|
27 |
def predict_category(abstract):
|