jrnold commited on
Commit
931c04e
β€’
1 Parent(s): 4789dac

move examples

Browse files
app.py CHANGED
@@ -20,6 +20,7 @@ def classify_image(img):
20
 
21
  image = gr.inputs.Image(shape=(192, 192))
22
  label = gr.outputs.Label()
23
- examples = [str(f) for f in Path(".").glob("*.jpg")]
24
- intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
 
25
  intf.launch()
 
20
 
21
  image = gr.inputs.Image(shape=(192, 192))
22
  label = gr.outputs.Label()
23
+ examples = "examples"
24
+ intf = gr.Interface(fn=classify_image, inputs=image, outputs=label,
25
+ examples=examples)
26
  intf.launch()
Bengal_102.jpg β†’ examples/Bengal_102.jpg RENAMED
File without changes
Sphynx_143.jpg β†’ examples/Sphynx_143.jpg RENAMED
File without changes
chihuahua_43.jpg β†’ examples/chihuahua_43.jpg RENAMED
File without changes
english_setter_15.jpg β†’ examples/english_setter_15.jpg RENAMED
File without changes
havanese_129.jpg β†’ examples/havanese_129.jpg RENAMED
File without changes
japanese_chin_83.jpg β†’ examples/japanese_chin_83.jpg RENAMED
File without changes