Update app.py
Browse files24 unmodified lines25262728282930313224 unmodified lines img_tensor = tfm(img) img_tensor = img_tensor[np.newaxis, :] pred_prob = model(img_tensor) pred_prob_numpy = pred_prob.detach().numpy() return pred_prob return pred_prob_numpy
gr.Interface(fn=predict, inputs=gr.Image(type="pil"), outputs="label").launch(debug=True)# gr.Interface(fn=predict, inputs=gr.Image(type="pil"), outputs="label").launch(debug=True)app.py+2-1