Spaces:
Running
Running
crcdng
commited on
Commit
·
84c8d64
1
Parent(s):
d97b9bc
timer
Browse files- Gradio_UI.py +1 -1
Gradio_UI.py
CHANGED
@@ -289,7 +289,7 @@ class GradioUI:
|
|
289 |
|
290 |
with gr.Row():
|
291 |
timer = gr.Timer(1)
|
292 |
-
time_display = gr.Textbox(label="Time")
|
293 |
import datetime
|
294 |
from zoneinfo import ZoneInfo
|
295 |
timer.tick(lambda: round(time.time()), outputs=time_display)
|
|
|
289 |
|
290 |
with gr.Row():
|
291 |
timer = gr.Timer(1)
|
292 |
+
time_display = gr.Textbox(label="Time", every=timer)
|
293 |
import datetime
|
294 |
from zoneinfo import ZoneInfo
|
295 |
timer.tick(lambda: round(time.time()), outputs=time_display)
|