Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -29,8 +29,8 @@ def classify_image(inp):
|
|
29 |
np.random.seed(143)
|
30 |
labels = {'Cat': 0, 'Dog': 1}
|
31 |
NUM_CLASSES = 2
|
32 |
-
inp = inp.reshape((-1, HEIGHT, WIDTH, 3))
|
33 |
-
inp = tf.keras.applications.nasnet.preprocess_input(inp)
|
34 |
prediction = model.predict(inp)
|
35 |
predicted_class_indices = np.argmax(prediction, axis=1)
|
36 |
|
|
|
29 |
np.random.seed(143)
|
30 |
labels = {'Cat': 0, 'Dog': 1}
|
31 |
NUM_CLASSES = 2
|
32 |
+
#inp = inp.reshape((-1, HEIGHT, WIDTH, 3))
|
33 |
+
#inp = tf.keras.applications.nasnet.preprocess_input(inp)
|
34 |
prediction = model.predict(inp)
|
35 |
predicted_class_indices = np.argmax(prediction, axis=1)
|
36 |
|