Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ NUM_CLASSES=6
|
|
17 |
|
18 |
def classify_image(inp):
|
19 |
inp = inp.reshape((-1, HEIGHT,WIDTH, 3))
|
20 |
-
inp = tf.keras.applications.nasnet.preprocess_input(inp)
|
21 |
prediction = model.predict(inp).flatten()
|
22 |
return {labels[i]: float(prediction[i]) for i in range(NUM_CLASSES)}
|
23 |
|
|
|
17 |
|
18 |
def classify_image(inp):
|
19 |
inp = inp.reshape((-1, HEIGHT,WIDTH, 3))
|
20 |
+
#inp = tf.keras.applications.nasnet.preprocess_input(inp)
|
21 |
prediction = model.predict(inp).flatten()
|
22 |
return {labels[i]: float(prediction[i]) for i in range(NUM_CLASSES)}
|
23 |
|