amirTamer commited on
Commit
0c783ea
·
1 Parent(s): ab6d58f

adham bohemeth

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -87,6 +87,10 @@ def preprocess_image(image, model_choice, mode_choice):
87
  image_hog = image_hog.reshape(1, -1)
88
  return image_hog
89
  else:
 
 
 
 
90
  image_hog = image_hog.reshape(1, -1)
91
  return image_hog
92
 
 
87
  image_hog = image_hog.reshape(1, -1)
88
  return image_hog
89
  else:
90
+ if model_choice == "GNB":
91
+ image_hog = image_hog.reshape(1, -1)
92
+ image_pca = pca.transform(image_hog)
93
+ return image_pca
94
  image_hog = image_hog.reshape(1, -1)
95
  return image_hog
96