Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,11 +6,10 @@ from tensorflow.keras.preprocessing import image
|
|
6 |
|
7 |
|
8 |
|
9 |
-
def predict_input_image(
|
10 |
-
|
11 |
-
img = img.
|
12 |
-
|
13 |
-
img_array = np.expand_dims(img_array, axis=0) # Reshape the image to match the model input
|
14 |
|
15 |
# Make predictions
|
16 |
model = tf.keras.models.load_model('Tumor_Model.h5')
|
|
|
6 |
|
7 |
|
8 |
|
9 |
+
def predict_input_image(img):
|
10 |
+
|
11 |
+
img = img.reshape(-1,224,224,3)
|
12 |
+
|
|
|
13 |
|
14 |
# Make predictions
|
15 |
model = tf.keras.models.load_model('Tumor_Model.h5')
|