Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ model=load_model('best_model2.h5')
|
|
31 |
|
32 |
def classify_image(inp):
|
33 |
np.random.seed(143)
|
34 |
-
labels = {'Burger King':
|
35 |
NUM_CLASSES = 6
|
36 |
inp = inp.reshape((-1, HEIGHT, WIDTH, 3))
|
37 |
inp = tf.keras.applications.nasnet.preprocess_input(inp)
|
|
|
31 |
|
32 |
def classify_image(inp):
|
33 |
np.random.seed(143)
|
34 |
+
labels = {'Burger King': 1, 'KFC': 0, 'McDonalds': 2, 'Other': 3, 'Starbucks': 4, 'Subway': 5}
|
35 |
NUM_CLASSES = 6
|
36 |
inp = inp.reshape((-1, HEIGHT, WIDTH, 3))
|
37 |
inp = tf.keras.applications.nasnet.preprocess_input(inp)
|