Spaces:
Runtime error
Runtime error
Ziyou Li
commited on
Commit
·
c45f40d
1
Parent(s):
be8fd3b
Update app.py
Browse files
app.py
CHANGED
@@ -59,7 +59,9 @@ 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 |
+
ts = datetime.timestamp(input_dataframe["referenceTime"])
|
63 |
+
print(ts)
|
64 |
+
input_dataframe["referenceTime"] = ts
|
65 |
return pd.DataFrame(model.predict(input_dataframe)).clip(0, 1)
|
66 |
|
67 |
title = "Stoclholm Highway E4 Real Time Traffic Prediction"
|