Update code to match new gradio
Browse files15 unmodified lines1617181920192021222315 unmodified lines pred, idx, probs = loaded_learn.predict(img) return dict(zip(categories, map(float, probs))) image = gr.inputs.Image(shape=(192, 192))label = gr.outputs.Label()image = gr.components.Image(shape=(192, 192))label = gr.components.Label()examples = ["doggo.jpg", "catto.jpg", "test.jpg"]
intf = gr.Interface(app.py+2-2