Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,7 +21,7 @@ class_labels = {
|
|
| 21 |
def classify_skin_cancer(image):
|
| 22 |
# Preprocess the image
|
| 23 |
image = np.array(image)
|
| 24 |
-
image = tf.image.resize(image, (75, 100))
|
| 25 |
image = np.expand_dims(image, axis=0)
|
| 26 |
|
| 27 |
predictions = model.predict(image)
|
|
|
|
| 21 |
def classify_skin_cancer(image):
|
| 22 |
# Preprocess the image
|
| 23 |
image = np.array(image)
|
| 24 |
+
image = tf.image.resize(image, (75, 100))
|
| 25 |
image = np.expand_dims(image, axis=0)
|
| 26 |
|
| 27 |
predictions = model.predict(image)
|