Spaces:
Build error
Build error
Commit
·
bf5b3c7
1
Parent(s):
6a7d2d8
update intro
Browse files
app.py
CHANGED
@@ -41,7 +41,8 @@ def preprocess_image(img_array):
|
|
41 |
|
42 |
|
43 |
# Main inference function
|
44 |
-
def inference(
|
|
|
45 |
img = preprocess_image(img)
|
46 |
img = np.expand_dims(img, 0)
|
47 |
preds = model.predict(img)
|
|
|
41 |
|
42 |
|
43 |
# Main inference function
|
44 |
+
def inference(img_path):
|
45 |
+
img = Image.open(img_path)
|
46 |
img = preprocess_image(img)
|
47 |
img = np.expand_dims(img, 0)
|
48 |
preds = model.predict(img)
|