Omnibus commited on
Commit
a83fda1
·
verified ·
1 Parent(s): feb8ef0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -463,8 +463,8 @@ def get_time():
463
  return gr.update(),gr.update(),gr.update()
464
  with gr.Blocks() as app:
465
  datetimestamp=gr.State(value=str(datetime.datetime.now()).split(".")[0])
466
- datestamp=int(str(datetimestamp).replace(" ","-").split("-"))
467
- timestamp=int(str(datetimestamp).replace(" ","-").split("-")[3].split(":"))
468
 
469
  time_html=gr.HTML(f"""<div style='font-size:xxx-large;'>Current: {datetimestamp} UTC</div>""")
470
  with gr.Tab("NOAA"):
 
463
  return gr.update(),gr.update(),gr.update()
464
  with gr.Blocks() as app:
465
  datetimestamp=gr.State(value=str(datetime.datetime.now()).split(".")[0])
466
+ datestamp=str(datetimestamp).replace(" ","-").split("-")
467
+ timestamp=datestamp[3].split(":")
468
 
469
  time_html=gr.HTML(f"""<div style='font-size:xxx-large;'>Current: {datetimestamp} UTC</div>""")
470
  with gr.Tab("NOAA"):