Spaces:
Runtime error
Runtime error
Campfireman
commited on
Commit
•
ada5e88
1
Parent(s):
9d7e90c
Update app.py
Browse files
app.py
CHANGED
@@ -90,6 +90,15 @@ def greet(total_pred_days):
|
|
90 |
project = hopsworks.login()
|
91 |
mr=project.get_model_registry()
|
92 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
model = mr.get_model("temp_model_new", version=1)
|
94 |
model_dir=model.download()
|
95 |
|
@@ -103,14 +112,6 @@ model = joblib.load(model_dir + "/model_temp_new.pkl")
|
|
103 |
model1 = joblib.load(model_dir1 + "/model_tempmax_new.pkl")
|
104 |
model2 = joblib.load(model_dir2+ "/model_tempmin_new.pkl")
|
105 |
|
106 |
-
fs = project.get_feature_store()
|
107 |
-
weather_fg = fs.get_or_create_feature_group(
|
108 |
-
name = 'weather_fg',
|
109 |
-
version = 1
|
110 |
-
)
|
111 |
-
|
112 |
-
query = weather_fg.select_all()
|
113 |
-
Q = query.read()
|
114 |
|
115 |
########################################################
|
116 |
# Gradio Interface
|
|
|
90 |
project = hopsworks.login()
|
91 |
mr=project.get_model_registry()
|
92 |
|
93 |
+
fs = project.get_feature_store()
|
94 |
+
weather_fg = fs.get_or_create_feature_group(
|
95 |
+
name = 'weather_fg',
|
96 |
+
version = 1
|
97 |
+
)
|
98 |
+
|
99 |
+
query = weather_fg.select_all()
|
100 |
+
Q = query.read()
|
101 |
+
|
102 |
model = mr.get_model("temp_model_new", version=1)
|
103 |
model_dir=model.download()
|
104 |
|
|
|
112 |
model1 = joblib.load(model_dir1 + "/model_tempmax_new.pkl")
|
113 |
model2 = joblib.load(model_dir2+ "/model_tempmin_new.pkl")
|
114 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
|
116 |
########################################################
|
117 |
# Gradio Interface
|