Spaces:
Runtime error
Runtime error
Update app.py
Browse files5 unmodified lines6789101112910111213141516 unmodified lines32333435353637385 unmodified linesclass_folders = ["Ajloun Castle", "Jeresh", "Petra", "Roman amphitheater", "Umm_Qais", "Wadi_Rum"]
Inception_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_path='./Models/inceptionv3_-saved-model-59-val_accuracy-0.94.hdf5'VGGNet_path='./Models/vgg_16_-saved-model-89-acc-0.93.hdf5'ResNet_path= './Models/resnet50-saved-model-79-val_acc-1.00.hdf5'EfficientNet_path= './Models/efficientnet-saved-model-06-val_acc-0.98.hdf5'
Inception_model = load_model(Inception_path)VGGNet_model = load_model(VGGNet_path)16 unmodified lines elif model_name == "InceptionV3": predictions = Inception_model.predict(img)
class_indices = np.argsort(predictions[0])[::-1] class_indices = np.argsort(predictions[0]) class_probabilities = predictions[0][class_indices] class_names = [class_folders[idx] for idx in class_indices]
app.py+5-5