FKBaffour commited on
Commit
caf6959
·
1 Parent(s): 648a60d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -78,7 +78,7 @@ elif social_acc_nav == 'About App':
78
  st.sidebar.markdown("[ Visit Github Repository for more information](https://github.com/Kyei-frank/Titanic-Project---Machine-Learning-from-Disaster)")
79
 
80
  # Loading Machine Learning Objects
81
- @st.cache
82
  def load_saved_objects(file_path = 'ML_items'):
83
  # Function to load saved objects
84
  with open('ML_items', 'rb') as file:
@@ -92,7 +92,7 @@ pipeline_of_my_app = Loaded_object["pipeline"]
92
 
93
 
94
  # Setting up variables for input data
95
- @st.cache
96
  def setup(tmp_df_file):
97
  "Setup the required elements like files, models, global variables, etc"
98
  pd.DataFrame(
 
78
  st.sidebar.markdown("[ Visit Github Repository for more information](https://github.com/Kyei-frank/Titanic-Project---Machine-Learning-from-Disaster)")
79
 
80
  # Loading Machine Learning Objects
81
+ @st.cache_data
82
  def load_saved_objects(file_path = 'ML_items'):
83
  # Function to load saved objects
84
  with open('ML_items', 'rb') as file:
 
92
 
93
 
94
  # Setting up variables for input data
95
+ @st.cache_data
96
  def setup(tmp_df_file):
97
  "Setup the required elements like files, models, global variables, etc"
98
  pd.DataFrame(