Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -23,12 +23,10 @@ def air_quality(city):
|
|
23 |
|
24 |
weather_df = weather_df.drop(columns=["feelslikemin", "feelslikemax", "precipprob", "snowdepth", "uvindex", "date","city","conditions"]).fillna(0)
|
25 |
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
)
|
31 |
-
|
32 |
|
33 |
preds = model.predict(weather_df)
|
34 |
|
|
|
23 |
|
24 |
weather_df = weather_df.drop(columns=["feelslikemin", "feelslikemax", "precipprob", "snowdepth", "uvindex", "date","city","conditions"]).fillna(0)
|
25 |
|
26 |
+
mr = project.get_model_registry()
|
27 |
+
model = mr.get_model("gradient_boost_model", version=2)
|
28 |
+
model_dir = model.download()
|
29 |
+
model = joblib.load(model_dir + "/model.pkl")
|
|
|
|
|
30 |
|
31 |
preds = model.predict(weather_df)
|
32 |
|