MCPcopy
hub / github.com/Akegarasu/ChatGLM-webui / wait_on_server

Function wait_on_server

webui.py:31–39  ·  view source on GitHub ↗
(ui=None)

Source from the content-addressed store, hash-verified

29
30
31def wait_on_server(ui=None):
32 while 1:
33 time.sleep(1)
34 if options.need_restart:
35 options.need_restart = False
36 time.sleep(0.5)
37 ui.close()
38 time.sleep(0.5)
39 break
40
41
42def main():

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected