AbdullahAj2000 commited on
Commit
1febaee
·
verified ·
1 Parent(s): 7b4839f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -89,6 +89,7 @@ def show_preds_image(image_path,model_selection):
89
  mux_value = str(classify_image(image_path,model_selection)[0])
90
  img = cv2.imread(image_path)
91
  img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
 
92
  height, width, _ = img.shape
93
  text_x = int((width - len(mux_value) * 10) / 2)
94
  text_y = int(height / 2)
 
89
  mux_value = str(classify_image(image_path,model_selection)[0])
90
  img = cv2.imread(image_path)
91
  img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
92
+ img = cv2.resize(img, (224, 224))
93
  height, width, _ = img.shape
94
  text_x = int((width - len(mux_value) * 10) / 2)
95
  text_y = int(height / 2)