howlbz commited on
Commit
d4f47a3
·
1 Parent(s): c595706

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -10,9 +10,11 @@ project = hopsworks.login(api_key_value="B8TDkmcSyPyWFM2o.YuXEbXM7MUFk5gdBXFXsbM
10
  fs = project.get_feature_store()
11
 
12
  mr = project.get_model_registry()
13
- model = mr.get_model("xgboost_model", version=1)
14
- model_dir="weather_model"
15
- model = joblib.load('weather_model/weather_model.pkl')
 
 
16
 
17
 
18
 
 
10
  fs = project.get_feature_store()
11
 
12
  mr = project.get_model_registry()
13
+ model = mr.get_model("weather_model", version=1)
14
+ # model_dir="weather_model"
15
+ model_dir = model.download()
16
+ # model = joblib.load('weather_model/weather_model.pkl')
17
+ model = joblib.load(model_dir+ '/weather_model.pkl')
18
 
19
 
20