Spaces:
Sleeping
Sleeping
Commit
·
729003b
1
Parent(s):
1df5d20
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ import pickle
|
|
10 |
|
11 |
|
12 |
# Load your CNN tumor classification model
|
13 |
-
cnn_model = tf.keras.models.load_model('
|
14 |
|
15 |
# Function to perform image classification using CNN
|
16 |
def classify_image(img, cnn_model):
|
@@ -27,9 +27,9 @@ def classify_image(img, cnn_model):
|
|
27 |
|
28 |
|
29 |
# Load your RNN SMS spam detection model
|
30 |
-
rnn_smsspam_model = tf.keras.models.load_model('
|
31 |
# Load the saved tokenizer
|
32 |
-
with open('
|
33 |
rnn_smsspam_tokenizer = pickle.load(handle)
|
34 |
|
35 |
def rnn_predict_message(input_text):
|
|
|
10 |
|
11 |
|
12 |
# Load your CNN tumor classification model
|
13 |
+
cnn_model = tf.keras.models.load_model('cnn_tumor_model.h5')
|
14 |
|
15 |
# Function to perform image classification using CNN
|
16 |
def classify_image(img, cnn_model):
|
|
|
27 |
|
28 |
|
29 |
# Load your RNN SMS spam detection model
|
30 |
+
rnn_smsspam_model = tf.keras.models.load_model('rnn_smsspam_model.h5')
|
31 |
# Load the saved tokenizer
|
32 |
+
with open('rnn_smsspam_tokenizer.pickle', 'rb') as handle:
|
33 |
rnn_smsspam_tokenizer = pickle.load(handle)
|
34 |
|
35 |
def rnn_predict_message(input_text):
|