Spaces:
Sleeping
Sleeping
Arunachalam S
commited on
Commit
•
c7f5096
1
Parent(s):
5fb1cfb
upd
Browse files
app.py
CHANGED
@@ -9,7 +9,13 @@ from big_query import BigQuery
|
|
9 |
|
10 |
st.title("Welcome to ABC Bank")
|
11 |
|
12 |
-
model
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
#Even though we are not going to use gender to predict the loan status,
|
14 |
#we will be getting the gender data for future plans/schemes.
|
15 |
with st.form('Loan Form',clear_on_submit=True):
|
|
|
9 |
|
10 |
st.title("Welcome to ABC Bank")
|
11 |
|
12 |
+
#using cache resource to save the model so that it will not be loading for each sessions
|
13 |
+
@st.cache_resource
|
14 |
+
def load_model():
|
15 |
+
model = joblib.load('model_final.joblib')
|
16 |
+
return model
|
17 |
+
|
18 |
+
model = load_model()
|
19 |
#Even though we are not going to use gender to predict the loan status,
|
20 |
#we will be getting the gender data for future plans/schemes.
|
21 |
with st.form('Loan Form',clear_on_submit=True):
|