Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ def inference(img):
|
|
54 |
img = cv2.imread(img)
|
55 |
img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
|
56 |
|
57 |
-
img = pre_process_edgetpu(img, (
|
58 |
|
59 |
img_batch = np.expand_dims(img, axis=0)
|
60 |
|
|
|
54 |
img = cv2.imread(img)
|
55 |
img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
|
56 |
|
57 |
+
img = pre_process_edgetpu(img, (128, 128, 3))
|
58 |
|
59 |
img_batch = np.expand_dims(img, axis=0)
|
60 |
|