Nabil000 commited on
Commit
6133eaa
1 Parent(s): 42d990f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -8,12 +8,12 @@ from pycaret.classification import *
8
  # os.environ['MLFLOW_TRACKING_PASSWORD'] = 'dadc32f6246f307c2fe4928f3074068f628b79ba'
9
 
10
  # # load model
11
- # mlflow.set_tracking_uri('https://dagshub.com/fandanabil1379/loan_prediction.mlflow')
12
- # model_name = "v1.0.1"
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):
 
8
  # os.environ['MLFLOW_TRACKING_PASSWORD'] = 'dadc32f6246f307c2fe4928f3074068f628b79ba'
9
 
10
  # # load model
11
+ mlflow.set_tracking_uri('https://dagshub.com/fandanabil1379/loan_prediction.mlflow')
12
+ model_name = "v1.0.1"
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):