Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
26 |
-
|
27 |
-
|
|
|
|
|
|
|
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):
|