Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ current_dir = dirname(realpath(__file__))
|
|
| 9 |
with open(join(current_dir, 'image_labels.json')) as labels_file:
|
| 10 |
labels=json.load(labels_file)
|
| 11 |
|
| 12 |
-
mobile_net = tf.keras.applications.
|
| 13 |
def image_classifier(img):
|
| 14 |
img = cv2.resize(img, (224,224))
|
| 15 |
arr = np.expand_dims(img, axis=0)
|
|
|
|
| 9 |
with open(join(current_dir, 'image_labels.json')) as labels_file:
|
| 10 |
labels=json.load(labels_file)
|
| 11 |
|
| 12 |
+
mobile_net = tf.keras.applications.MobileNetV2()
|
| 13 |
def image_classifier(img):
|
| 14 |
img = cv2.resize(img, (224,224))
|
| 15 |
arr = np.expand_dims(img, axis=0)
|