xp3857 commited on
Commit
27c5e0a
1 Parent(s): 03f10fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -146,7 +146,7 @@ document.querySelector("#close").addEventListener("click", function(){
146
 
147
  def ac():
148
  def clear():
149
- return gr.update(value=0),gr.update(value=0),gr.Accordion.update(label="Timeout",open=True,visible=True)
150
  def start():
151
  print ("start")
152
  stamp = time.time()
@@ -190,8 +190,8 @@ def ac():
190
  h=gr.Textbox(value="V")
191
  t_state=gr.Number()
192
  t_switch=gr.Textbox(value=0)
193
- with gr.Accordion(label="Timeout",open=False, visible=False) as acc:
194
- restart = gr.Button(elem_id="restart_btn")
195
 
196
  def un_btn():
197
  return gr.Button.update(elem_id="blank", visible=False)
 
146
 
147
  def ac():
148
  def clear():
149
+ return gr.update(value=0),gr.update(value=0),gr.update(label="Timeout",open=True,visible=True)
150
  def start():
151
  print ("start")
152
  stamp = time.time()
 
190
  h=gr.Textbox(value="V")
191
  t_state=gr.Number()
192
  t_switch=gr.Textbox(value=0)
193
+ with gr.Accordion(elem_id="restart_btn",label="Timeout",open=False, visible=False) as acc:
194
+ restart = gr.Button()
195
 
196
  def un_btn():
197
  return gr.Button.update(elem_id="blank", visible=False)