Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ model=load_model('Models/best_model1.h5')
|
|
43 |
def classify_image(inp):
|
44 |
NUM_CLASSES=2
|
45 |
# Resize the image to the required size
|
46 |
-
labels =
|
47 |
inp = tf.image.resize(inp, [IMG_SIZE, IMG_SIZE])
|
48 |
inp = inp.numpy()
|
49 |
inp = inp.reshape((-1, IMG_SIZE, IMG_SIZE, 3))
|
|
|
43 |
def classify_image(inp):
|
44 |
NUM_CLASSES=2
|
45 |
# Resize the image to the required size
|
46 |
+
labels = ['Cat','Dog']
|
47 |
inp = tf.image.resize(inp, [IMG_SIZE, IMG_SIZE])
|
48 |
inp = inp.numpy()
|
49 |
inp = inp.reshape((-1, IMG_SIZE, IMG_SIZE, 3))
|