victor commited on
Commit
a97d993
·
1 Parent(s): 15c3d25

added example

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -54,12 +54,14 @@ def classify_pokemon(img):
54
  # Gradio interface setup
55
  image = gr.Image(type='pil') # Image size should match your training data size (e.g., 128x128)
56
  label = gr.Label()
 
57
 
58
  # Set up Gradio interface
59
  intf = gr.Interface(
60
  fn=classify_pokemon,
61
  inputs=image,
62
  outputs=label,
 
63
  )
64
 
65
  # Launch the app
 
54
  # Gradio interface setup
55
  image = gr.Image(type='pil') # Image size should match your training data size (e.g., 128x128)
56
  label = gr.Label()
57
+ examples = ['zapdos.jpg']
58
 
59
  # Set up Gradio interface
60
  intf = gr.Interface(
61
  fn=classify_pokemon,
62
  inputs=image,
63
  outputs=label,
64
+ examples=examples
65
  )
66
 
67
  # Launch the app