Add --nowebui flag for pure API mode (#4651)

This commit is contained in:
oobabooga 2023-11-18 23:38:39 -03:00 committed by GitHub
parent 0fa1af296c
commit ef6feedeb2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 11 deletions

View file

@ -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()