kuko6 commited on
Commit
9b5f0ab
·
1 Parent(s): 5bb415f

added examples

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -28,9 +28,16 @@ def pokemon_classifier(inp):
28
 
29
  with gr.Blocks() as demo:
30
  gr.Markdown("# Gen 1 Pokemon classifier")
31
- with gr.Column(scale=1):
32
  inp = gr.Image(type="pil")
33
  out = gr.Textbox(label='Pokemon')
 
 
 
 
 
 
 
34
  btn = gr.Button("Run")
35
  btn.click(fn=pokemon_classifier, inputs=inp, outputs=out)
36
 
 
28
 
29
  with gr.Blocks() as demo:
30
  gr.Markdown("# Gen 1 Pokemon classifier")
31
+ with gr.Column(scale=2):
32
  inp = gr.Image(type="pil")
33
  out = gr.Textbox(label='Pokemon')
34
+ gr.Examples(
35
+ examples=[os.path.join(
36
+ os.path.dirname(__file__), "images/Aerodactyl.jpg"),
37
+ os.path.join(os.path.dirname(__file__), "images/Bulbasaur.jpg"),
38
+ os.path.join(os.path.dirname(__file__), "images/Charizard.jpg")
39
+ ],
40
+ )
41
  btn = gr.Button("Run")
42
  btn.click(fn=pokemon_classifier, inputs=inp, outputs=out)
43