Ziyou Li commited on
Commit
936f336
·
1 Parent(s): 40198f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -63,22 +63,22 @@ def infer(input_dataframe):
63
  title = "Stoclholm Highway E4 Real Time Traffic Prediction"
64
  description = "Stockholm E4 (59°23'44.7"" N 17°59'00.4""E) highway real time traffic prediction"
65
 
66
- inputs = [gr.Dataframe(row_count = (1, "fixed"), col_count=(7,"fixed"),
67
- headers=["referenceTime", "t", "ws", "prec1h", "fesn1h", "vis", "confidence"],
68
- # datatype=["timestamp", "float", "float", "float", "float", "float"],
69
- label="Input Data", interactive=1)]
70
 
71
- outputs = [gr.Dataframe(row_count = (1, "fixed"), col_count=(1, "fixed"), label="Predictions", headers=["Congestion Level"])]
72
 
73
  with gr.Blocks() as demo:
74
  with gr.Row():
75
  with gr.Column():
76
- gr.Dataframe(row_count = (1, "fixed"), col_count=(7,"fixed"),
77
  headers=["referenceTime", "t", "ws", "prec1h", "fesn1h", "vis", "confidence"],
78
  # datatype=["timestamp", "float", "float", "float", "float", "float"],
79
  label="Input Data", interactive=1)
80
  with gr.Column():
81
- gr.Dataframe(row_count = (1, "fixed"), col_count=(1, "fixed"), label="Predictions", headers=["Congestion Level"])
82
 
83
  with gr.Row():
84
  btn_sub = gr.Button(value="Submit")
 
63
  title = "Stoclholm Highway E4 Real Time Traffic Prediction"
64
  description = "Stockholm E4 (59°23'44.7"" N 17°59'00.4""E) highway real time traffic prediction"
65
 
66
+ # inputs = [gr.Dataframe(row_count = (1, "fixed"), col_count=(7,"fixed"),
67
+ # headers=["referenceTime", "t", "ws", "prec1h", "fesn1h", "vis", "confidence"],
68
+ # # datatype=["timestamp", "float", "float", "float", "float", "float"],
69
+ # label="Input Data", interactive=1)]
70
 
71
+ # outputs = [gr.Dataframe(row_count = (1, "fixed"), col_count=(1, "fixed"), label="Predictions", headers=["Congestion Level"])]
72
 
73
  with gr.Blocks() as demo:
74
  with gr.Row():
75
  with gr.Column():
76
+ inputs = gr.Dataframe(row_count = (1, "fixed"), col_count=(7,"fixed"),
77
  headers=["referenceTime", "t", "ws", "prec1h", "fesn1h", "vis", "confidence"],
78
  # datatype=["timestamp", "float", "float", "float", "float", "float"],
79
  label="Input Data", interactive=1)
80
  with gr.Column():
81
+ outputs = gr.Dataframe(row_count = (1, "fixed"), col_count=(1, "fixed"), label="Predictions", headers=["Congestion Level"])
82
 
83
  with gr.Row():
84
  btn_sub = gr.Button(value="Submit")