Chenzhou commited on
Commit
eba165f
·
1 Parent(s): bd7f540

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -48,8 +48,10 @@ with gr.Blocks() as demo:
48
  headers=["referenceTime", "t", "ws", "prec1h", "fesn1h", "vis", "confidence"],
49
  # datatype=["timestamp", "float", "float", "float", "float", "float"],
50
  label="Input Data", interactive=1)
 
51
  with gr.Column:
52
  gr.Dataframe(row_count = (1, "fixed"), col_count=(1, "fixed"), label="Predictions", headers=["Congestion Level"])
 
53
  demo.load(lambda: datetime.datetime.now(), None, c_time2, every=1)
54
 
55
  with gr.Row():
 
48
  headers=["referenceTime", "t", "ws", "prec1h", "fesn1h", "vis", "confidence"],
49
  # datatype=["timestamp", "float", "float", "float", "float", "float"],
50
  label="Input Data", interactive=1)
51
+ c_time2 = gr.Textbox(label="Current Time refreshed every second")
52
  with gr.Column:
53
  gr.Dataframe(row_count = (1, "fixed"), col_count=(1, "fixed"), label="Predictions", headers=["Congestion Level"])
54
+
55
  demo.load(lambda: datetime.datetime.now(), None, c_time2, every=1)
56
 
57
  with gr.Row():