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(r'
|
28 |
backprop_model = pickle.load(file)
|
29 |
|
30 |
-
with open(r'
|
31 |
perceptron_model = pickle.load(file)
|
32 |
|
33 |
-
with open(r'
|
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(r'Model_backprop.pkl', 'rb') as file:
|
28 |
backprop_model = pickle.load(file)
|
29 |
|
30 |
+
with open(r'Percep_model.pkl', 'rb') as file:
|
31 |
perceptron_model = pickle.load(file)
|
32 |
|
33 |
+
with open(r'tokeniser.pkl', 'rb') as file:
|
34 |
loaded_tokeniser = pickle.load(file)
|
35 |
|
36 |
lstm_model_path='Lstm_model.h5'
|