achmaddhani commited on
Commit
76277e7
·
1 Parent(s): f47fcdd

Update functions.py

Browse files
Files changed (1) hide show
  1. 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(model, X):
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)