Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import numpy as np
|
|
| 4 |
from tensorflow.keras.preprocessing.sequence import pad_sequences
|
| 5 |
|
| 6 |
# Load the trained model
|
| 7 |
-
model = tf.
|
| 8 |
|
| 9 |
def spam_detection(message):
|
| 10 |
# Preprocess the input message
|
|
|
|
| 4 |
from tensorflow.keras.preprocessing.sequence import pad_sequences
|
| 5 |
|
| 6 |
# Load the trained model
|
| 7 |
+
model = tf.keras.models.load_model('./model_file.pkl')
|
| 8 |
|
| 9 |
def spam_detection(message):
|
| 10 |
# Preprocess the input message
|