Spaces:
Sleeping
Sleeping
Laroza
Browse files
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
|
| 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 |
|