Fix unexpected extensions load after gradio restart (#3965)

This commit is contained in:
Lu Guanghua 2023-09-18 04:35:43 +08:00 committed by GitHub
parent d9b0f2c9c3
commit 9858acee7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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':