Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,16 +25,16 @@ st.write(18 * "-")
|
|
| 25 |
fancy_header('\n Getting data from Feature Store...')
|
| 26 |
|
| 27 |
today = datetime.date.today()
|
| 28 |
-
city = "
|
| 29 |
weekly_data = get_weather_data_weekly(city, today)
|
| 30 |
|
| 31 |
|
| 32 |
st.write(27 * "-")
|
| 33 |
|
| 34 |
mr = project.get_model_registry()
|
| 35 |
-
model = mr.get_best_model("
|
| 36 |
model_dir = model.download()
|
| 37 |
-
model = joblib.load(model_dir + "/
|
| 38 |
|
| 39 |
st.write("-" * 36)
|
| 40 |
|
|
|
|
| 25 |
fancy_header('\n Getting data from Feature Store...')
|
| 26 |
|
| 27 |
today = datetime.date.today()
|
| 28 |
+
city = "helsinki"
|
| 29 |
weekly_data = get_weather_data_weekly(city, today)
|
| 30 |
|
| 31 |
|
| 32 |
st.write(27 * "-")
|
| 33 |
|
| 34 |
mr = project.get_model_registry()
|
| 35 |
+
model = mr.get_best_model("gradient_boost_model", "rmse", "min")
|
| 36 |
model_dir = model.download()
|
| 37 |
+
model = joblib.load(model_dir + "/gradient_boost_model.pkl")
|
| 38 |
|
| 39 |
st.write("-" * 36)
|
| 40 |
|