Spaces:
Sleeping
Sleeping
Commit ·
76277e7
1
Parent(s): f47fcdd
Update functions.py
Browse files- functions.py +1 -1
functions.py
CHANGED
|
@@ -35,7 +35,7 @@ def preprocess_text(text):
|
|
| 35 |
lemmatized_clean = [word.translate(str.maketrans('', '', string.punctuation)) for word in lemmatized_words]
|
| 36 |
return ' '.join(lemmatized_clean)
|
| 37 |
|
| 38 |
-
def prediction(
|
| 39 |
model = load_model('best_model.keras')
|
| 40 |
y_pred = model.predict(X)
|
| 41 |
predictions = np.argmax(y_pred, axis=1)
|
|
|
|
| 35 |
lemmatized_clean = [word.translate(str.maketrans('', '', string.punctuation)) for word in lemmatized_words]
|
| 36 |
return ' '.join(lemmatized_clean)
|
| 37 |
|
| 38 |
+
def prediction(X):
|
| 39 |
model = load_model('best_model.keras')
|
| 40 |
y_pred = model.predict(X)
|
| 41 |
predictions = np.argmax(y_pred, axis=1)
|