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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -37,6 +37,10 @@ with gr.Blocks() as demo:
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)
 
37
  os.path.join(os.path.dirname(__file__), "images/Bulbasaur.jpg"),
38
  os.path.join(os.path.dirname(__file__), "images/Charizard.jpg")
39
  ],
40
+ inputs=inp,
41
+ outputs=out,
42
+ fn=pokemon_classifier,
43
+ cache_examples=True
44
  )
45
  btn = gr.Button("Run")
46
  btn.click(fn=pokemon_classifier, inputs=inp, outputs=out)