Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ def predict(img):
|
|
19 |
# determined by the first position in the shape tuple, in this case 1.
|
20 |
data = np.ndarray(shape=(1, 224, 224, 3), dtype=np.float32)
|
21 |
# Replace this with the path to your image
|
22 |
-
image = gr.
|
23 |
#resize the image to a 224x224 with the same strategy as in TM2:
|
24 |
#resizing the image to be at least 224x224 and then cropping from the center
|
25 |
size = (224, 224)
|
|
|
19 |
# determined by the first position in the shape tuple, in this case 1.
|
20 |
data = np.ndarray(shape=(1, 224, 224, 3), dtype=np.float32)
|
21 |
# Replace this with the path to your image
|
22 |
+
image = gr.inputs.Image()
|
23 |
#resize the image to a 224x224 with the same strategy as in TM2:
|
24 |
#resizing the image to be at least 224x224 and then cropping from the center
|
25 |
size = (224, 224)
|