Ziyou Li commited on
Commit
73e6ff6
·
1 Parent(s): c0e0496

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -59,7 +59,11 @@ model = joblib.load(cached_download(
59
  ))
60
 
61
  def infer(input_dataframe):
62
- input_dataframe["referenceTime"] = input_dataframe["referenceTime"].timestamp()
 
 
 
 
63
  return pd.DataFrame(model.predict(input_dataframe)).clip(0, 1)
64
 
65
  title = "Stoclholm Highway E4 Real Time Traffic Prediction"
 
59
  ))
60
 
61
  def infer(input_dataframe):
62
+ serie = input_dataframe["referenceTime"]
63
+ print(serie)
64
+ ts = serie.timestamp()
65
+ print(ts)
66
+ input_dataframe["referenceTime"] = ts
67
  return pd.DataFrame(model.predict(input_dataframe)).clip(0, 1)
68
 
69
  title = "Stoclholm Highway E4 Real Time Traffic Prediction"