Update code to match new gradio
Browse files15 unmodified lines161718192021222315 unmodified linespred, idx, probs = loaded_learn.predict(img)return dict(zip(categories, map(float, probs)))image = gr.inputs.Image(shape=(192, 192))label = gr.outputs.Label()examples = ["doggo.jpg", "catto.jpg", "test.jpg"]intf = gr.Interface(15 unmodified lines161718192021222315 unmodified linespred, idx, probs = loaded_learn.predict(img)return dict(zip(categories, map(float, probs)))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