Spaces:
Build error
Build error
Commit
·
c9372eb
1
Parent(s):
69151c2
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ from sklearn.feature_extraction.text import CountVectorizer
|
|
| 6 |
cv = CountVectorizer()
|
| 7 |
# Load the pickled model
|
| 8 |
def load_model():
|
| 9 |
-
return pickle.load(open('
|
| 10 |
|
| 11 |
# Function for model prediction
|
| 12 |
def model_prediction(model, features):
|
|
|
|
| 6 |
cv = CountVectorizer()
|
| 7 |
# Load the pickled model
|
| 8 |
def load_model():
|
| 9 |
+
return pickle.load(open('Sarcasm_Detection_BernoulliNB.pkl', 'rb')) #Load model from notebook
|
| 10 |
|
| 11 |
# Function for model prediction
|
| 12 |
def model_prediction(model, features):
|