amirTamer commited on
Commit
99c3135
·
1 Parent(s): 4604662
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -113,7 +113,7 @@ def preprocess_image(image, model_choice, mode_choice):
113
  return image_hog
114
  elif model_choice == "KNN":
115
  image_hog = image_hog.reshape(1, -1)
116
- image_pca = (image_hog - pca_KNN["pca_mean"]) @ pca_KNN["pca_components"].T
117
  return image_pca
118
 
119
 
 
113
  return image_hog
114
  elif model_choice == "KNN":
115
  image_hog = image_hog.reshape(1, -1)
116
+ image_pca = pca_multi.transform(image_hog)
117
  return image_pca
118
 
119