jonathan-roos commited on
Commit
e88eb2f
1 Parent(s): 59f7dfd

added examples=examples in gr.Interface

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,5 +11,5 @@ image = gr.inputs.Image(shape=(200, 200))
11
  label = gr.outputs.Label()
12
  examples = ['bat1.png', 'bat2.png', 'not_bat.png']
13
 
14
- iface = gr.Interface(fn=classify_bat, inputs=image, outputs=label)
15
  iface.launch()
 
11
  label = gr.outputs.Label()
12
  examples = ['bat1.png', 'bat2.png', 'not_bat.png']
13
 
14
+ iface = gr.Interface(fn=classify_bat, inputs=image, outputs=label, examples=examples)
15
  iface.launch()