sunil18p31a0101 commited on
Commit
8e22fb5
·
verified ·
1 Parent(s): 12513ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 = pickle.load(f)
18
 
19
  with open(scaler_path, 'rb') as f:
20
- scaler = pickle.load(f)
21
 
22
  with open(encoder_path, 'rb') as f:
23
- label_encoder = pickle.load(f)
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):