Spaces:
Runtime error
Runtime error
Update app.py
Browse files4 unmodified lines5678910111213141516171819204 unmodified linesclass_folders = ["Ajloun Castle", "Jeresh", "Petra", "Roman amphitheater", "Umm_Qais", "Wadi_Rum"]# Define paths for the HDF5 modelsInception_path='./inceptionv3_-saved-model-59-val_accuracy-0.94.hdf5'VGGNet_path='./vgg_16_-saved-model-89-acc-0.93.hdf5'ResNet_path= './resnet50-saved-model-79-val_acc-1.00.hdf5'EfficientNet_path= './efficientnet-saved-model-06-val_acc-0.98.hdf5'Inception_model = load_model(Inception_path)VGGNet_model = load_model(VGGNet_path)ResNet_model = load_model(ResNet_path)Efficient_model = load_model(EfficientNet_path)def classify_selected_model(image, model_name):try:4 unmodified lines56789101112131415164 unmodified linesclass_folders = ["Ajloun Castle", "Jeresh", "Petra", "Roman amphitheater", "Umm_Qais", "Wadi_Rum"]Inception_model = ort.InferenceSession('./Models_onnx/inceptionv3.onnx')VGGNet_model = ort.InferenceSession('./Models_onnx/vgg_16.onnx')ResNet_model = ort.InferenceSession('./Models_onnx/resnet50.onnx')Efficient_model = ort.InferenceSession('./Models_onnx/efficientnet.onnx')def classify_selected_model(image, model_name):try:
app.py+6-10