Spaces:
Runtime error
Runtime error
Ziyou Li
commited on
Commit
·
73e6ff6
1
Parent(s):
c0e0496
Update app.py
Browse files
app.py
CHANGED
@@ -59,7 +59,11 @@ model = joblib.load(cached_download(
|
|
59 |
))
|
60 |
|
61 |
def infer(input_dataframe):
|
62 |
-
|
|
|
|
|
|
|
|
|
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"
|