Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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)
|