mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-25 17:29:22 +01:00
Fix unexpected extensions load after gradio restart (#3965)
This commit is contained in:
parent
d9b0f2c9c3
commit
9858acee7b
@ -27,6 +27,7 @@ def apply_settings(extension, name):
|
|||||||
|
|
||||||
def load_extensions():
|
def load_extensions():
|
||||||
global state, setup_called
|
global state, setup_called
|
||||||
|
state = {}
|
||||||
for i, name in enumerate(shared.args.extensions):
|
for i, name in enumerate(shared.args.extensions):
|
||||||
if name in available_extensions:
|
if name in available_extensions:
|
||||||
if name != 'api':
|
if name != 'api':
|
||||||
|
Loading…
Reference in New Issue
Block a user