Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ fs = project.get_feature_store()
|
|
11 |
|
12 |
mr = project.get_model_registry()
|
13 |
model = mr.get_model("xgboost_model", version=1)
|
14 |
-
|
15 |
# model = joblib.load(model_dir + "/model.pkl")
|
16 |
|
17 |
|
@@ -26,7 +26,7 @@ def forecast():
|
|
26 |
|
27 |
res = model.predict(np.asarray(x).reshape(-1, 1))
|
28 |
|
29 |
-
return
|
30 |
|
31 |
demo = gr.Interface(
|
32 |
fn=forecast,
|
|
|
11 |
|
12 |
mr = project.get_model_registry()
|
13 |
model = mr.get_model("xgboost_model", version=1)
|
14 |
+
model_dir = model.download()
|
15 |
# model = joblib.load(model_dir + "/model.pkl")
|
16 |
|
17 |
|
|
|
26 |
|
27 |
res = model.predict(np.asarray(x).reshape(-1, 1))
|
28 |
|
29 |
+
return model_dir
|
30 |
|
31 |
demo = gr.Interface(
|
32 |
fn=forecast,
|