Spaces:
Runtime error
Runtime error
Campfireman
commited on
Commit
·
6d82468
1
Parent(s):
21d542a
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,10 @@ from functions import decode_features
|
|
14 |
|
15 |
def greet(total_pred_days):
|
16 |
|
|
|
|
|
17 |
project = hopsworks.login()
|
|
|
18 |
#api = project.get_dataset_api()
|
19 |
fs = project.get_feature_store()
|
20 |
feature_view = fs.get_feature_view(
|
@@ -22,7 +25,6 @@ def greet(total_pred_days):
|
|
22 |
version = 1
|
23 |
)
|
24 |
|
25 |
-
print(feature_view)
|
26 |
# The latest available data timestamp
|
27 |
start_time = 1635112800000
|
28 |
|
@@ -36,6 +38,7 @@ def greet(total_pred_days):
|
|
36 |
model = get_model("temp_model", version=2)
|
37 |
model_dir =model.download()
|
38 |
model =joblib.load(model_dir+"/temp_model.pkl")
|
|
|
39 |
model1 = get_model("tempmax_model", version=2)
|
40 |
model_dir1 =model1.download()
|
41 |
model1 =joblib.load(model_dir1+"/tempmax_model.pkl")
|
|
|
14 |
|
15 |
def greet(total_pred_days):
|
16 |
|
17 |
+
|
18 |
+
print("hi")
|
19 |
project = hopsworks.login()
|
20 |
+
print("connected")
|
21 |
#api = project.get_dataset_api()
|
22 |
fs = project.get_feature_store()
|
23 |
feature_view = fs.get_feature_view(
|
|
|
25 |
version = 1
|
26 |
)
|
27 |
|
|
|
28 |
# The latest available data timestamp
|
29 |
start_time = 1635112800000
|
30 |
|
|
|
38 |
model = get_model("temp_model", version=2)
|
39 |
model_dir =model.download()
|
40 |
model =joblib.load(model_dir+"/temp_model.pkl")
|
41 |
+
print("temp_model is now right")
|
42 |
model1 = get_model("tempmax_model", version=2)
|
43 |
model_dir1 =model1.download()
|
44 |
model1 =joblib.load(model_dir1+"/tempmax_model.pkl")
|