Spaces:
Runtime error
Runtime error
Campfireman
commited on
Commit
·
10083a0
1
Parent(s):
c3fc79b
Update app.py
Browse files
app.py
CHANGED
@@ -34,9 +34,9 @@ def greet(total_pred_days):
|
|
34 |
#start_date = datetime.now() - timedelta(days=1)
|
35 |
#start_time = int(start_date.timestamp()) * 1000
|
36 |
|
37 |
-
print("
|
38 |
-
|
39 |
-
|
40 |
latest_date_unix = str(X.datetime.values[0])[:10]
|
41 |
latest_date = time.ctime(int(latest_date_unix))
|
42 |
print("latest_date")
|
@@ -51,6 +51,8 @@ def greet(total_pred_days):
|
|
51 |
model_dir2 =model2.download()
|
52 |
model2 =joblib.load(model_dir2+"/tempmin_model.pkl")
|
53 |
|
|
|
|
|
54 |
X = X.drop(columns=["datetime"]).fillna(0)
|
55 |
|
56 |
preds = model.predict(X)
|
|
|
34 |
#start_date = datetime.now() - timedelta(days=1)
|
35 |
#start_time = int(start_date.timestamp()) * 1000
|
36 |
|
37 |
+
print("Time Stamp Set. ")
|
38 |
+
|
39 |
+
|
40 |
latest_date_unix = str(X.datetime.values[0])[:10]
|
41 |
latest_date = time.ctime(int(latest_date_unix))
|
42 |
print("latest_date")
|
|
|
51 |
model_dir2 =model2.download()
|
52 |
model2 =joblib.load(model_dir2+"/tempmin_model.pkl")
|
53 |
|
54 |
+
X = feature_view.get_batch_data(start_time=start_time, end_time=end_time)
|
55 |
+
print("Data batched")
|
56 |
X = X.drop(columns=["datetime"]).fillna(0)
|
57 |
|
58 |
preds = model.predict(X)
|