Spaces:
Runtime error
Runtime error
Update app.py
Browse files1123456678943 unmodified lines535455565756575859606161import onnxruntime as ortmport onnxruntime as ortimport numpy as npimport gradio as grimport cv2
# Load ONNX model# 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=[gr.Label(name="Predicted class"), gr.Label(name="Confidence Score")], title='Image Classification', outputs="label", title= 'Image Classification', live=True)
iface.launch(share=True)iface.launch(share=True,debug=True)app.py+5-5