xp3857 commited on
Commit
1169dde
1 Parent(s): 8100db9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -50,7 +50,7 @@ def ac():
50
  ts = stamp + 120
51
  ti = time.time()
52
  if ti > ts and stamp != 0:
53
- return gr.update(value=1),gr.HTML.update(f"{m_out}", visible=True)
54
  else:
55
  return gr.update(value=0),None
56
  def im_fn(put,fac="",h=None):
@@ -66,7 +66,7 @@ def ac():
66
  except Exception:
67
  return None, None
68
  def cl_fac():
69
- return "",gr.HTML.update("", visible=False)
70
  with gr.Blocks(css=css) as b:
71
  with gr.Row():
72
  with gr.Column():
@@ -75,7 +75,7 @@ def ac():
75
  with gr.Row():
76
  btn1 = gr.Button("Run")
77
  btn2 = gr.Button("Clear",style="background:blue;")
78
- message=gr.HTML("", visible=False)
79
  with gr.Row():
80
  out1 = gr.Image()
81
  out2 = gr.Image()
 
50
  ts = stamp + 120
51
  ti = time.time()
52
  if ti > ts and stamp != 0:
53
+ return gr.update(value=1),gr.HTML.update(f"{m_out}")
54
  else:
55
  return gr.update(value=0),None
56
  def im_fn(put,fac="",h=None):
 
66
  except Exception:
67
  return None, None
68
  def cl_fac():
69
+ return "",gr.HTML.update("")
70
  with gr.Blocks(css=css) as b:
71
  with gr.Row():
72
  with gr.Column():
 
75
  with gr.Row():
76
  btn1 = gr.Button("Run")
77
  btn2 = gr.Button("Clear",style="background:blue;")
78
+ message=gr.HTML("")
79
  with gr.Row():
80
  out1 = gr.Image()
81
  out2 = gr.Image()