kk90ujhun commited on
Commit
efbc8c5
·
1 Parent(s): 99b188c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -21,10 +21,13 @@ feature_view = fs.get_feature_view(
21
  version = 1
22
  )
23
 
24
- model = get_model(project=project,
25
- model_name="air_quality_model",
26
- evaluation_metric="f1_score",
27
- sort_metrics_by="max")
 
 
 
28
 
29
 
30
  def pred(name):
 
21
  version = 1
22
  )
23
 
24
+ # model = get_model(project=project,
25
+ # model_name="air_quality_model",
26
+ # evaluation_metric="f1_score",
27
+ # sort_metrics_by="max")
28
+ model = mr.get_model("air_quality_model",version = 3)
29
+ model_dir = model.download()
30
+ model = joblib.load(model_dir + "/model.pkl")
31
 
32
 
33
  def pred(name):