Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -14,13 +14,13 @@ encoder_path = "label_encoder.pkl" # Replace with the path to your LabelEncoder
|
|
14 |
|
15 |
# Load the pickle files
|
16 |
with open(model_path, 'rb') as f:
|
17 |
-
svr_model =
|
18 |
|
19 |
with open(scaler_path, 'rb') as f:
|
20 |
-
scaler =
|
21 |
|
22 |
with open(encoder_path, 'rb') as f:
|
23 |
-
label_encoder =
|
24 |
|
25 |
# Feature extraction function
|
26 |
def extract_features(image):
|
|
|
14 |
|
15 |
# Load the pickle files
|
16 |
with open(model_path, 'rb') as f:
|
17 |
+
svr_model = joblib.load(f)
|
18 |
|
19 |
with open(scaler_path, 'rb') as f:
|
20 |
+
scaler = joblib.load(f)
|
21 |
|
22 |
with open(encoder_path, 'rb') as f:
|
23 |
+
label_encoder = joblib.load(f)
|
24 |
|
25 |
# Feature extraction function
|
26 |
def extract_features(image):
|