Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.
|
| 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.
|
| 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(
|