Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -49,12 +49,12 @@ with gr.Blocks() as demo:
|
|
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 |
-
|
53 |
|
54 |
with gr.Column:
|
55 |
gr.Dataframe(row_count = (1, "fixed"), col_count=(1, "fixed"), label="Predictions", headers=["Congestion Level"])
|
56 |
|
57 |
-
|
58 |
|
59 |
with gr.Row():
|
60 |
btn_sub = gr.Button(value="Submit")
|
|
|
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 |
+
|
53 |
|
54 |
with gr.Column:
|
55 |
gr.Dataframe(row_count = (1, "fixed"), col_count=(1, "fixed"), label="Predictions", headers=["Congestion Level"])
|
56 |
|
57 |
+
demo.load(lambda: datetime.datetime.now(), None, c_time2, every=1)
|
58 |
|
59 |
with gr.Row():
|
60 |
btn_sub = gr.Button(value="Submit")
|