mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2025-12-06 07:12:10 +01:00
fix failure when --nowebui called without --api (#7055)
This commit is contained in:
parent
1443612e72
commit
331d03c33f
|
|
@ -318,8 +318,8 @@ if __name__ == "__main__":
|
|||
|
||||
if shared.args.nowebui:
|
||||
# Start the API in standalone mode
|
||||
shared.args.extensions = [x for x in shared.args.extensions if x != 'gallery']
|
||||
if shared.args.extensions is not None and len(shared.args.extensions) > 0:
|
||||
shared.args.extensions = [x for x in (shared.args.extensions or []) if x != 'gallery']
|
||||
if shared.args.extensions:
|
||||
extensions_module.load_extensions()
|
||||
else:
|
||||
# Launch the web UI
|
||||
|
|
|
|||
Loading…
Reference in a new issue