Shafanda Nabil Sembodo commited on
Commit ·
42d990f
1
Parent(s): dfdc513
updated
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ from pycaret.classification import *
|
|
| 13 |
# stage = "Production"
|
| 14 |
# model = mlflow.sklearn.load_model(f"models:/{model_name}/{stage}")
|
| 15 |
|
| 16 |
-
|
| 17 |
|
| 18 |
@st.cache_data
|
| 19 |
def convert_df(df):
|
|
@@ -24,7 +24,6 @@ def run():
|
|
| 24 |
st.set_page_config(page_title="Loan Default Prediction App")
|
| 25 |
st.title('Loan Default Prediction')
|
| 26 |
|
| 27 |
-
st.write(model)
|
| 28 |
uploaded_file = st.file_uploader("Choose a file", type={"csv"})
|
| 29 |
if uploaded_file is not None:
|
| 30 |
# do prediction
|
|
|
|
| 13 |
# stage = "Production"
|
| 14 |
# model = mlflow.sklearn.load_model(f"models:/{model_name}/{stage}")
|
| 15 |
|
| 16 |
+
model = load_model('model')
|
| 17 |
|
| 18 |
@st.cache_data
|
| 19 |
def convert_df(df):
|
|
|
|
| 24 |
st.set_page_config(page_title="Loan Default Prediction App")
|
| 25 |
st.title('Loan Default Prediction')
|
| 26 |
|
|
|
|
| 27 |
uploaded_file = st.file_uploader("Choose a file", type={"csv"})
|
| 28 |
if uploaded_file is not None:
|
| 29 |
# do prediction
|