Spaces:
Sleeping
Sleeping
Commit
·
5a38a19
1
Parent(s):
0ae6a0b
fix: convert Path object to list
Browse files
app.py
CHANGED
@@ -19,11 +19,10 @@ def categorize_image(image):
|
|
19 |
return dict(zip(CATEGORIES, map(float, probabilities)))
|
20 |
|
21 |
|
22 |
-
print([image for image in TEST_IMAGES_PATH.ls()])
|
23 |
demo = gradio.Interface(
|
24 |
categorize_image,
|
25 |
inputs='image',
|
26 |
outputs='label',
|
27 |
-
examples=[image for image in TEST_IMAGES_PATH]
|
28 |
)
|
29 |
demo.launch()
|
|
|
19 |
return dict(zip(CATEGORIES, map(float, probabilities)))
|
20 |
|
21 |
|
|
|
22 |
demo = gradio.Interface(
|
23 |
categorize_image,
|
24 |
inputs='image',
|
25 |
outputs='label',
|
26 |
+
examples=[str(image) for image in TEST_IMAGES_PATH.iterdir()]
|
27 |
)
|
28 |
demo.launch()
|