Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,8 @@ import nltk
|
|
3 |
from nltk.corpus import stopwords
|
4 |
import joblib
|
5 |
|
|
|
|
|
6 |
# Load the trained model and vectorizer outside the function for better performance
|
7 |
loaded_classifier = joblib.load("is_this_bible_model.pkl")
|
8 |
vectorizer = joblib.load("is_this_bible_vectorizer.pkl")
|
|
|
3 |
from nltk.corpus import stopwords
|
4 |
import joblib
|
5 |
|
6 |
+
nltk.download('punkt')
|
7 |
+
|
8 |
# Load the trained model and vectorizer outside the function for better performance
|
9 |
loaded_classifier = joblib.load("is_this_bible_model.pkl")
|
10 |
vectorizer = joblib.load("is_this_bible_vectorizer.pkl")
|