Munzali commited on
Commit
bab15e4
·
verified ·
1 Parent(s): cc6218f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -67,7 +67,8 @@ def app():
67
  gr.Number(label="Prediction time (s)")], # our fn has two outputs, therefore we have two outputs
68
  with gr.Column():
69
  example_list = [["examples/" + example] for example in os.listdir("examples")]
70
- examples = gr.Examples(example_list)
 
71
  infer.click(
72
  fn=predict,
73
  inputs=image,
 
67
  gr.Number(label="Prediction time (s)")], # our fn has two outputs, therefore we have two outputs
68
  with gr.Column():
69
  example_list = [["examples/" + example] for example in os.listdir("examples")]
70
+ examples = gr.Examples(examples=example_list,
71
+ inputs=gr.Image(type='pil') )
72
  infer.click(
73
  fn=predict,
74
  inputs=image,