Spaces:
Runtime error
Runtime error
Update app.py
Browse files12345678943 unmodified lines535455565758596061import onnxruntime as ortimport numpy as npimport gradio as grimport cv2# Load ONNX modelonnx_inception_model = ort.InferenceSession('./Models_onnx/inceptionv3.onnx')onnx_vggnet_model = ort.InferenceSession('./Models_onnx/vgg_16.onnx')onnx_resnet_model = ort.InferenceSession('./Models_onnx/resnet50.onnx')43 unmodified linesiface = gr.Interface(fn=classify_image,inputs=[image_input, gr.Dropdown(["InceptionV3", "VGGNet", "ResNet", "EfficientNet"], label="Select Model")],outputs=[gr.Label(name="Predicted class"), gr.Label(name="Confidence Score")],title='Image Classification',live=True)iface.launch(share=True)12345678943 unmodified lines535455565758596061mport onnxruntime as ortimport numpy as npimport gradio as grimport cv2# Load ONNX modelsonnx_inception_model = ort.InferenceSession('./Models_onnx/inceptionv3.onnx')onnx_vggnet_model = ort.InferenceSession('./Models_onnx/vgg_16.onnx')onnx_resnet_model = ort.InferenceSession('./Models_onnx/resnet50.onnx')43 unmodified linesiface = gr.Interface(fn=classify_image,inputs=[image_input, gr.Dropdown(["InceptionV3", "VGGNet", "ResNet", "EfficientNet"], label="Select Model")],outputs="label",title= 'Image Classification',live=True)iface.launch(share=True,debug=True)
app.py+5-5