Saiyaswanth007 commited on
Commit
e4956e9
·
1 Parent(s): 86ec81b

every DEPCIATED

Browse files
Files changed (1) hide show
  1. ui.py +3 -1
ui.py CHANGED
@@ -377,7 +377,9 @@ def build_ui():
377
  except Exception as e:
378
  return f"Connection error: {str(e)}"
379
 
380
- status_timer = gr.Timer(every=5, function=get_status, outputs=status_output)
 
 
381
 
382
  return demo
383
 
 
377
  except Exception as e:
378
  return f"Connection error: {str(e)}"
379
 
380
+ status_timer = gr.Timer()
381
+ status_timer.tick(fn=get_status, outputs=status_output, every=5)
382
+
383
 
384
  return demo
385