Add --nowebui flag for pure API mode (#4651)
This commit is contained in:
parent
0fa1af296c
commit
ef6feedeb2
4 changed files with 22 additions and 11 deletions
|
@ -341,4 +341,7 @@ def run_server():
|
|||
|
||||
|
||||
def setup():
|
||||
Thread(target=run_server, daemon=True).start()
|
||||
if shared.args.nowebui:
|
||||
run_server()
|
||||
else:
|
||||
Thread(target=run_server, daemon=True).start()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue