vickybelario commited on
Commit
3efdcf6
·
verified ·
1 Parent(s): f4cce46

Update prediction.py

Browse files
Files changed (1) hide show
  1. prediction.py +1 -1
prediction.py CHANGED
@@ -5,7 +5,7 @@ import pickle
5
  import matplotlib.pyplot as plt
6
 
7
  # Load Model
8
- @st.cache
9
  def load_model():
10
  with open('model.pkl', 'rb') as file:
11
  model = pickle.load(file)
 
5
  import matplotlib.pyplot as plt
6
 
7
  # Load Model
8
+ @st.cache(allow_output_mutation=True)
9
  def load_model():
10
  with open('model.pkl', 'rb') as file:
11
  model = pickle.load(file)