Spaces:
Runtime error
Runtime error
Campfireman
commited on
Commit
·
5430a2b
1
Parent(s):
3fc38c0
Update app.py
Browse files
app.py
CHANGED
@@ -34,8 +34,14 @@ def greet(total_pred_days):
|
|
34 |
latest_date_unix = str(X.datetime.values[0])[:10]
|
35 |
latest_date = time.ctime(int(latest_date_unix))
|
36 |
model = get_model("temp_model", version=2)
|
|
|
|
|
37 |
model1 = get_model("tempmax_model", version=2)
|
|
|
|
|
38 |
model2 = get_model("tempmin_model", version=2)
|
|
|
|
|
39 |
|
40 |
X = X.drop(columns=["datetime"]).fillna(0)
|
41 |
|
|
|
34 |
latest_date_unix = str(X.datetime.values[0])[:10]
|
35 |
latest_date = time.ctime(int(latest_date_unix))
|
36 |
model = get_model("temp_model", version=2)
|
37 |
+
model_dir =model.download()
|
38 |
+
model =joblib.load(mkdir+"/temp_model.pkl")
|
39 |
model1 = get_model("tempmax_model", version=2)
|
40 |
+
model_dir1 =model1.download()
|
41 |
+
model1 =joblib.load(mkdir+"/tempmax_model.pkl")
|
42 |
model2 = get_model("tempmin_model", version=2)
|
43 |
+
model_dir2 =model2.download()
|
44 |
+
model2 =joblib.load(mkdir+"/tempmin_model.pkl")
|
45 |
|
46 |
X = X.drop(columns=["datetime"]).fillna(0)
|
47 |
|