Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ model=load_model('best_model_76.h5')
|
|
12 |
|
13 |
def classify_image(inp):
|
14 |
inp = inp.reshape((-1, IMG_SIZE, IMG_SIZE, 3))
|
15 |
-
inp = tf.keras.applications.vgg16.preprocess_input(inp)
|
16 |
prediction = model.predict(inp).flatten()
|
17 |
return {labels[i]: float(prediction[i]) for i in range(NUM_CLASSES)}
|
18 |
|
|
|
12 |
|
13 |
def classify_image(inp):
|
14 |
inp = inp.reshape((-1, IMG_SIZE, IMG_SIZE, 3))
|
15 |
+
#inp = tf.keras.applications.vgg16.preprocess_input(inp)
|
16 |
prediction = model.predict(inp).flatten()
|
17 |
return {labels[i]: float(prediction[i]) for i in range(NUM_CLASSES)}
|
18 |
|