Spaces:
Sleeping
Sleeping
multiLog
Browse files- app.py +2 -2
- multiLog_hog.pkl +3 -0
app.py
CHANGED
|
@@ -66,7 +66,7 @@ gnb_multimode_model = gnb_multimode_model["model"]
|
|
| 66 |
dt_multimode_model = load_pickle_file('dt_Multi.pkl')
|
| 67 |
dt_multimode_model = dt_multimode_model['model']
|
| 68 |
svm_multimode_model = None
|
| 69 |
-
logreg_multimode_model =
|
| 70 |
knn_multimode_model = None
|
| 71 |
|
| 72 |
# Example when you add a model:
|
|
@@ -95,7 +95,7 @@ def preprocess_image(image, model_choice, mode_choice):
|
|
| 95 |
image_hog = image_hog.reshape(1, -1)
|
| 96 |
image_pca = pca_multi.transform(image_hog)
|
| 97 |
return image_pca
|
| 98 |
-
elif model_choice == "DT":
|
| 99 |
image_hog = image_hog.reshape(1, -1)
|
| 100 |
return image_hog
|
| 101 |
|
|
|
|
| 66 |
dt_multimode_model = load_pickle_file('dt_Multi.pkl')
|
| 67 |
dt_multimode_model = dt_multimode_model['model']
|
| 68 |
svm_multimode_model = None
|
| 69 |
+
logreg_multimode_model = load_pickle_file('multiLog_hog.pkl')
|
| 70 |
knn_multimode_model = None
|
| 71 |
|
| 72 |
# Example when you add a model:
|
|
|
|
| 95 |
image_hog = image_hog.reshape(1, -1)
|
| 96 |
image_pca = pca_multi.transform(image_hog)
|
| 97 |
return image_pca
|
| 98 |
+
elif model_choice == "DT" or model_choice == "Logistic Regression":
|
| 99 |
image_hog = image_hog.reshape(1, -1)
|
| 100 |
return image_hog
|
| 101 |
|
multiLog_hog.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1b52bc9d91a1031ab4a698793f3238c3a647c9cbfe40c7bf29a3caa6c056ea43
|
| 3 |
+
size 104235
|