Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -182,7 +182,7 @@ def show_preds_image(image_path,model_selection):
|
|
| 182 |
|
| 183 |
return img,conf,informations,link_info,google_map
|
| 184 |
|
| 185 |
-
|
| 186 |
img = cv2.imread(image_path)
|
| 187 |
img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
|
| 188 |
img = cv2.resize(img, (224, 224))
|
|
|
|
| 182 |
|
| 183 |
return img,conf,informations,link_info,google_map
|
| 184 |
|
| 185 |
+
elif 0.0 <float(classify_image(image_path,model_selection)[1])<0.3:
|
| 186 |
img = cv2.imread(image_path)
|
| 187 |
img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
|
| 188 |
img = cv2.resize(img, (224, 224))
|