# AUTOGENERATED! DO NOT EDIT! File to edit: app.ipynb. # %% auto 0 __all__ = ['learn', 'req', 'pkm_lst', 'image', 'label', 'intf'] # %% app.ipynb 1 from fastai.vision.all import * from fastcore.all import * import gradio as gr # %% app.ipynb 2 learn = load_learner('pkm_model.pkl') # %% app.ipynb 3 req = urlsend('https://pokeapi.co/api/v2/pokemon/', 'GET', query={'limit': '2000'}) pkm_lst = [x['name'] for x in req['results']] # %% app.ipynb 5 image = gr.inputs.Image(shape=(192, 192)) label = gr.outputs.Label() intf = gr.Interface(fn=classify_image, inputs=image, outputs=label) intf.launch(inline=False)