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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -8
app.py CHANGED
@@ -33,15 +33,12 @@ referenceTime = dp.parse(json_response_smhi["referenceTime"]).timestamp()
33
  def get_time():
34
  return datetime.datetime.now()
35
 
36
- with gr.Blocks() as demo:
37
- with gr.Row():
38
- with gr.Column():
39
- c_time2 = gr.Textbox(label="Current Time refreshed every second")
40
- )
41
- #gr.Interface(fn = infer, inputs = inputs, outputs = outputs, title=title, description=description,live=True).launch()
42
 
43
-
44
- demo.load(lambda: datetime.datetime.now(), None, c_time2, every=1)
45
 
46
 
47
  with gr.Blocks() as demo:
 
33
  def get_time():
34
  return datetime.datetime.now()
35
 
36
+ #with gr.Blocks() as demo:
37
+ # with gr.Row():
38
+ # with gr.Column():
39
+ # c_time2 = gr.Textbox(label="Current Time refreshed every second")
 
 
40
 
41
+ # demo.load(lambda: datetime.datetime.now(), None, c_time2, every=1)
 
42
 
43
 
44
  with gr.Blocks() as demo: