AbdullahAj2000 commited on
Commit
b9b7691
·
verified ·
1 Parent(s): 0144708

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 lassify_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))
 
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))