Fixing examples bug
Browse files
app.py
CHANGED
@@ -19,6 +19,6 @@ def classify_image(img):
|
|
19 |
|
20 |
image = gr.inputs.Image(shape=(192, 192))
|
21 |
label = gr.outputs.Label()
|
22 |
-
examples = [str(
|
23 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
24 |
intf.launch()
|
|
|
19 |
|
20 |
image = gr.inputs.Image(shape=(192, 192))
|
21 |
label = gr.outputs.Label()
|
22 |
+
examples = [str(f) for f in Path(".").glob("*.jpg")]
|
23 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
24 |
intf.launch()
|