Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -88,7 +88,7 @@ def classify_image(input_image,model_selection):
|
|
| 88 |
|
| 89 |
def show_preds_image(image_path,model_selection):
|
| 90 |
mux_value = str(classify_image(image_path,model_selection)[0])
|
| 91 |
-
if
|
| 92 |
img = cv2.imread(image_path)
|
| 93 |
img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
|
| 94 |
img = cv2.resize(img, (224, 224))
|
|
|
|
| 88 |
|
| 89 |
def show_preds_image(image_path,model_selection):
|
| 90 |
mux_value = str(classify_image(image_path,model_selection)[0])
|
| 91 |
+
if float(classify_image(image_path,model_selection)[1])>0.6:
|
| 92 |
img = cv2.imread(image_path)
|
| 93 |
img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
|
| 94 |
img = cv2.resize(img, (224, 224))
|