朱东升 commited on
Commit
3399cd9
·
1 Parent(s): ccdd995
Files changed (1) hide show
  1. app.py +11 -0
app.py CHANGED
@@ -576,6 +576,17 @@ def ui_get_queue_info():
576
  </div>
577
  """
578
 
 
 
 
 
 
 
 
 
 
 
 
579
  # 自定义CSS
580
  custom_css = """
581
  .container {
 
576
  </div>
577
  """
578
 
579
+ def launch_workers():
580
+ """启动工作线程"""
581
+ global running
582
+ running = True
583
+
584
+ # 创建工作线程
585
+ for _ in range(worker_threads):
586
+ worker = threading.Thread(target=queue_processor)
587
+ worker.daemon = True
588
+ worker.start()
589
+
590
  # 自定义CSS
591
  custom_css = """
592
  .container {