Spencer525 commited on
Commit
0f69e47
·
verified ·
1 Parent(s): c5a551c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -8,7 +8,8 @@ import matplotlib.pyplot as plt
8
  import seaborn as sns
9
 
10
  # Load the saved model from Hugging Face Space
11
- @st.cache(allow_output_mutation=True)
 
12
  def load_model():
13
  model_path = 'best_stacking_model.pkl' # Assuming you uploaded the model to the space root directory
14
  model = joblib.load(model_path)
 
8
  import seaborn as sns
9
 
10
  # Load the saved model from Hugging Face Space
11
+ #@st.cache(allow_output_mutation=True)
12
+ @st.cache_data
13
  def load_model():
14
  model_path = 'best_stacking_model.pkl' # Assuming you uploaded the model to the space root directory
15
  model = joblib.load(model_path)