tilos commited on
Commit
d48d55d
·
1 Parent(s): 8d99195

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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=(1, "fixed"), label="Predictions", headers=["Freeflow Level"])
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")