Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -69,7 +69,7 @@ def infer(input_dataframe):
|
|
69 |
status = "Slight congestion on E4"
|
70 |
else:
|
71 |
status = "Total congestion on E4"
|
72 |
-
return res, status
|
73 |
|
74 |
title = "Stoclholm Highway E4 Real Time Traffic Prediction"
|
75 |
description = "Stockholm E4 (59°23'44.7"" N 17°59'00.4""E) highway real time traffic prediction"
|
@@ -89,7 +89,7 @@ with gr.Blocks() as demo:
|
|
89 |
# datatype=["timestamp", "float", "float", "float", "float", "float"],
|
90 |
label="Input Data", interactive=1)
|
91 |
with gr.Column():
|
92 |
-
outputs = gr.Dataframe(row_count = (1, "fixed"), col_count=(
|
93 |
|
94 |
with gr.Row():
|
95 |
btn_sub = gr.Button(value="Submit")
|
|
|
69 |
status = "Slight congestion on E4"
|
70 |
else:
|
71 |
status = "Total congestion on E4"
|
72 |
+
return pd.Dataframe[res, status]
|
73 |
|
74 |
title = "Stoclholm Highway E4 Real Time Traffic Prediction"
|
75 |
description = "Stockholm E4 (59°23'44.7"" N 17°59'00.4""E) highway real time traffic prediction"
|
|
|
89 |
# datatype=["timestamp", "float", "float", "float", "float", "float"],
|
90 |
label="Input Data", interactive=1)
|
91 |
with gr.Column():
|
92 |
+
outputs = gr.Dataframe(row_count = (1, "fixed"), col_count=(2, "fixed"), label="Predictions", headers=["Freeflow Level", "Status"])
|
93 |
|
94 |
with gr.Row():
|
95 |
btn_sub = gr.Button(value="Submit")
|