Spaces:
Sleeping
Sleeping
crcdng
commited on
Commit
·
b7ffce8
1
Parent(s):
84c8d64
timezone
Browse files- Gradio_UI.py +1 -2
Gradio_UI.py
CHANGED
@@ -292,8 +292,7 @@ class GradioUI:
|
|
292 |
time_display = gr.Textbox(label="Time", every=timer)
|
293 |
import datetime
|
294 |
from zoneinfo import ZoneInfo
|
295 |
-
timer.tick(lambda:
|
296 |
-
# print(datetime.datetime.now(tz=ZoneInfo("Europe/Berlin")))
|
297 |
with gr.Row():
|
298 |
title=gr.HTML(title_html)
|
299 |
with gr.Row():
|
|
|
292 |
time_display = gr.Textbox(label="Time", every=timer)
|
293 |
import datetime
|
294 |
from zoneinfo import ZoneInfo
|
295 |
+
timer.tick(lambda: datetime.datetime.now(tz=ZoneInfo("Europe/Berlin")), outputs=time_display)
|
|
|
296 |
with gr.Row():
|
297 |
title=gr.HTML(title_html)
|
298 |
with gr.Row():
|