jrnold commited on
Commit
286c90a
1 Parent(s): 48efa13

Fixing examples bug

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(x) for x in Path("examples").iterdir()]
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()