matsammut commited on
Commit
c71a3a0
·
verified ·
1 Parent(s): 4727e02

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -70,9 +70,9 @@ def pca(data):
70
  pca_model_pkl = 'pca.pkl'
71
 
72
  with open(pca_model_pkl, 'rb') as file:
73
- pca_model = pickle.load(pca_model_pkl)
74
  with open(encoder_pkl, 'rb') as file:
75
- encoder = pickle.load(encoder_pkl)
76
 
77
  one_hot_encoded = encoder.transform(data[['workclass', 'occupation']])
78
  encoded_columns_df = pd.DataFrame(one_hot_encoded, columns=encoder.get_feature_names_out())
 
70
  pca_model_pkl = 'pca.pkl'
71
 
72
  with open(pca_model_pkl, 'rb') as file:
73
+ pca_model = pickle.load(file)
74
  with open(encoder_pkl, 'rb') as file:
75
+ encoder = pickle.load(file)
76
 
77
  one_hot_encoded = encoder.transform(data[['workclass', 'occupation']])
78
  encoded_columns_df = pd.DataFrame(one_hot_encoded, columns=encoder.get_feature_names_out())