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