Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,11 +16,11 @@ class_labels2 = ['Ajloun Castle', 'Hadrians Arch', 'Petra-siq', 'petra-Treasury'
|
|
| 16 |
def predict_image(image_path, model):
|
| 17 |
|
| 18 |
if model == "InceptionV3":
|
| 19 |
-
img_size = (
|
| 20 |
labels = class_labels
|
| 21 |
model_inceptionv3 = onnxruntime.InferenceSession(onnx_model_inceptionv3_path)
|
| 22 |
elif model == "Resnet101":
|
| 23 |
-
img_size = (
|
| 24 |
labels = class_labels
|
| 25 |
model_resnet101 = onnxruntime.InferenceSession(onnx_model_resnet101_path)
|
| 26 |
elif model == "Vgg19":
|
|
|
|
| 16 |
def predict_image(image_path, model):
|
| 17 |
|
| 18 |
if model == "InceptionV3":
|
| 19 |
+
img_size = (550, 475)
|
| 20 |
labels = class_labels
|
| 21 |
model_inceptionv3 = onnxruntime.InferenceSession(onnx_model_inceptionv3_path)
|
| 22 |
elif model == "Resnet101":
|
| 23 |
+
img_size = (250, 200)
|
| 24 |
labels = class_labels
|
| 25 |
model_resnet101 = onnxruntime.InferenceSession(onnx_model_resnet101_path)
|
| 26 |
elif model == "Vgg19":
|