Spaces:
Runtime error
Runtime error
Update app.py
Browse files2 unmodified lines3456788991011121313141516141516171819202 unmodified linesimport cv2import gradio as grimport onnximport onnxruntime as ort
onnx_inception_path = './Models_onnx/inceptionv3.onnx'onnx_vggnet_path = './Models_onnx/vggnet.onnx'onnx_resnet_path = './Models_onnx/resnet.onnx'onnx_vggnet_path = './Models_onnx/vgg_16.onnx'onnx_resnet_path = './Models_onnx/resnet50.onnx'onnx_efficientnet_path = './Models_onnx/efficientnet.onnx'
# Load ONNX modelsonnx_inception_model = onnx.load(onnx_inception_path)onnx_vggnet_model = onnx.load(onnx_vggnet_path)onnx_resnet_model = onnx.load(onnx_resnet_path)onnx_efficientnet_model = onnx.load(onnx_efficientnet_path)onnx_inception_model = ort.InferenceSession(onnx_inception_path)onnx_vggnet_model = ort.InferenceSession(onnx_vggnet_path)onnx_resnet_model = ort.InferenceSession(onnx_resnet_path)onnx_efficientnet_model = ort.InferenceSession(onnx_efficientnet_path)
class_names = ["Ajloun Castle", "Jeresh", "Petra", "Roman amphitheater", "Umm_Qais", "Wadi_Rum"]
app.py+7-6