Spaces:
Runtime error
Runtime error
Commit
·
01d568a
1
Parent(s):
219842f
Update app.py
Browse files
app.py
CHANGED
@@ -76,13 +76,13 @@ with model_results:
|
|
76 |
|
77 |
# instantiating count vectorizor
|
78 |
count = CountVectorizer(stop_words=stop_words)
|
79 |
-
X_train = pickle.load(open(
|
80 |
X_test = lemmatized_output
|
81 |
X_train_count = count.fit_transform(X_train)
|
82 |
X_test_count = count.transform(X_test)
|
83 |
|
84 |
# loading in model
|
85 |
-
final_model = pickle.load(open(
|
86 |
|
87 |
# apply model to make predictions
|
88 |
prediction = final_model.predict(X_test_count[0])
|
|
|
76 |
|
77 |
# instantiating count vectorizor
|
78 |
count = CountVectorizer(stop_words=stop_words)
|
79 |
+
X_train = pickle.load(open("C:\Users\User\Downloads\X_train", 'rb'))
|
80 |
X_test = lemmatized_output
|
81 |
X_train_count = count.fit_transform(X_train)
|
82 |
X_test_count = count.transform(X_test)
|
83 |
|
84 |
# loading in model
|
85 |
+
final_model = pickle.load(open("C:\Users\User\Downloads\bayes", 'rb'))
|
86 |
|
87 |
# apply model to make predictions
|
88 |
prediction = final_model.predict(X_test_count[0])
|