Spaces:
Running
Running
Update app.py
Browse files
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.
|
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(
|
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)
|