Campfireman commited on
Commit
bf94357
1 Parent(s): 8062140

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -21,9 +21,9 @@ def greet(name):
21
  version = 1
22
  )
23
 
24
- start_time = 1672614000000
25
- #start_date = datetime.now() - timedelta(days=1)
26
- #start_time = int(start_date.timestamp()) * 1000
27
 
28
 
29
  X = feature_view.get_batch_data(start_time=start_time)
@@ -51,7 +51,7 @@ def greet(name):
51
 
52
  for x in range(8):
53
  if(x != 0):
54
- str1 += (datetime.now() + timedelta(days=x)).strftime('%Y-%m-%d') + " predicted aqi: " + str(int(preds[len(preds) - 8 + x]))+"\n"
55
 
56
  print(str1)
57
  return str1
 
21
  version = 1
22
  )
23
 
24
+ # start_time = 1672614000000
25
+ start_date = datetime.now() - timedelta(days=1)
26
+ start_time = int(start_date.timestamp()) * 1000
27
 
28
 
29
  X = feature_view.get_batch_data(start_time=start_time)
 
51
 
52
  for x in range(8):
53
  if(x != 0):
54
+ str1 += (datetime.now() + timedelta(days=x)).strftime('%Y-%m-%d') + " predicted temperature: " + str(int(preds[len(preds) - 8 + x]))+"\n"
55
 
56
  print(str1)
57
  return str1