Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -24,13 +24,13 @@ dnn_model = load_model('sms_spam_detection_dnnmodel.h5')
|
|
24 |
rnn_model = load_model('spam_detection_rnn_model.h5')
|
25 |
|
26 |
# Loading the model using pickle
|
27 |
-
with open(
|
28 |
backprop_model = pickle.load(file)
|
29 |
|
30 |
-
with open(
|
31 |
perceptron_model = pickle.load(file)
|
32 |
|
33 |
-
with open(
|
34 |
loaded_tokeniser = pickle.load(file)
|
35 |
|
36 |
lstm_model_path='Lstm_model.h5'
|
|
|
24 |
rnn_model = load_model('spam_detection_rnn_model.h5')
|
25 |
|
26 |
# Loading the model using pickle
|
27 |
+
with open('Model_backprop.pkl', 'rb') as file:
|
28 |
backprop_model = pickle.load(file)
|
29 |
|
30 |
+
with open('Percep_model.pkl', 'rb') as file:
|
31 |
perceptron_model = pickle.load(file)
|
32 |
|
33 |
+
with open('tokeniser.pkl', 'rb') as file:
|
34 |
loaded_tokeniser = pickle.load(file)
|
35 |
|
36 |
lstm_model_path='Lstm_model.h5'
|