SonFox2920 commited on
Commit
36422a7
·
verified ·
1 Parent(s): 4f8dece

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -48,7 +48,8 @@ def load_model_and_scaler():
48
  """Load the trained model and scaler"""
49
  try:
50
  model = tf.keras.models.load_model('mlp_model.h5')
51
- scaler = joblib.load('scaler.save')
 
52
  return model, scaler
53
  except Exception as e:
54
  st.error(f"Error loading model or scaler: {str(e)}")
 
48
  """Load the trained model and scaler"""
49
  try:
50
  model = tf.keras.models.load_model('mlp_model.h5')
51
+ # Tải scaler đã lưu
52
+ scaler = joblib.load('standard_scaler.pkl')
53
  return model, scaler
54
  except Exception as e:
55
  st.error(f"Error loading model or scaler: {str(e)}")