Spaces:
Runtime error
Runtime error
Minor change
Browse files12 unmodified lines131415161712 unmodified linespred,pred_idx,probs = learn.predict(img)return {labels[i]: float(probs[i]) for i in range(len(labels))}iface = gr.Interface(fn=predict, inputs=gr.Image(shape=(512, 512)), outputs=gr.Label(num_top_classes=3)).launch()iface.launch()12 unmodified lines13141516171819202112 unmodified linespred,pred_idx,probs = learn.predict(img)return {labels[i]: float(probs[i]) for i in range(len(labels))}iface = gr.Interface(fn=predict,inputs=gr.Image(shape=(512, 512)),outputs=gr.Label(num_top_classes=3),interpretation='default')iface.launch()
app.py+5-1