Spaces:
Runtime error
Runtime error
Campfireman
commited on
Commit
·
21d542a
1
Parent(s):
5430a2b
Update app.py
Browse files
app.py
CHANGED
@@ -35,13 +35,13 @@ def greet(total_pred_days):
|
|
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(
|
39 |
model1 = get_model("tempmax_model", version=2)
|
40 |
model_dir1 =model1.download()
|
41 |
-
model1 =joblib.load(
|
42 |
model2 = get_model("tempmin_model", version=2)
|
43 |
model_dir2 =model2.download()
|
44 |
-
model2 =joblib.load(
|
45 |
|
46 |
X = X.drop(columns=["datetime"]).fillna(0)
|
47 |
|
|
|
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(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")
|
42 |
model2 = get_model("tempmin_model", version=2)
|
43 |
model_dir2 =model2.download()
|
44 |
+
model2 =joblib.load(model_dir2+"/tempmin_model.pkl")
|
45 |
|
46 |
X = X.drop(columns=["datetime"]).fillna(0)
|
47 |
|