Spaces:
Runtime error
Runtime error
Campfireman
commited on
Commit
·
e624137
1
Parent(s):
1a0a204
Update app.py
Browse files
app.py
CHANGED
@@ -9,8 +9,8 @@ import time
|
|
9 |
from datetime import timedelta, datetime
|
10 |
from branca.element import Figure
|
11 |
|
12 |
-
|
13 |
-
import functions
|
14 |
|
15 |
def greet(total_pred_days):
|
16 |
|
@@ -37,16 +37,18 @@ def greet(total_pred_days):
|
|
37 |
print("Time Stamp Set. ")
|
38 |
|
39 |
|
40 |
-
|
|
|
41 |
print("latest_date")
|
42 |
-
model = get_model("temp_model", version=2)
|
43 |
model_dir =model.download()
|
44 |
model =joblib.load(model_dir+"/temp_model.pkl")
|
45 |
print("temp_model is now right")
|
46 |
-
|
|
|
47 |
model_dir1 =model1.download()
|
48 |
model1 =joblib.load(model_dir1+"/tempmax_model.pkl")
|
49 |
-
model2 = get_model("tempmin_model", version=2)
|
50 |
model_dir2 =model2.download()
|
51 |
model2 =joblib.load(model_dir2+"/tempmin_model.pkl")
|
52 |
|
|
|
9 |
from datetime import timedelta, datetime
|
10 |
from branca.element import Figure
|
11 |
|
12 |
+
from functions import decode_features
|
13 |
+
#import functions
|
14 |
|
15 |
def greet(total_pred_days):
|
16 |
|
|
|
37 |
print("Time Stamp Set. ")
|
38 |
|
39 |
|
40 |
+
mr=project.get_model_registry()
|
41 |
+
|
42 |
print("latest_date")
|
43 |
+
model = mr.get_model("temp_model", version=2)
|
44 |
model_dir =model.download()
|
45 |
model =joblib.load(model_dir+"/temp_model.pkl")
|
46 |
print("temp_model is now right")
|
47 |
+
|
48 |
+
model1 = mr.get_model("tempmax_model", version=2)
|
49 |
model_dir1 =model1.download()
|
50 |
model1 =joblib.load(model_dir1+"/tempmax_model.pkl")
|
51 |
+
model2 = mr.get_model("tempmin_model", version=2)
|
52 |
model_dir2 =model2.download()
|
53 |
model2 =joblib.load(model_dir2+"/tempmin_model.pkl")
|
54 |
|