katsukiai commited on
Commit
5545c32
·
verified ·
1 Parent(s): b76d54b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -137,7 +137,7 @@ with gr.Blocks(css=custom_css) as iface:
137
  def update_uptime():
138
  return get_uptime()
139
 
140
- uptime_text.change(fn=update_uptime, inputs=None, outputs=uptime_text, every=10)
141
 
142
  # Run and Push to HuggingFace
143
  def run_and_push():
 
137
  def update_uptime():
138
  return get_uptime()
139
 
140
+ gr.Every(10, fn=update_uptime, outputs=uptime_text)
141
 
142
  # Run and Push to HuggingFace
143
  def run_and_push():