Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
|
|
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)
|