Allow the webui to do multiple tasks simultaneously

This commit is contained in:
oobabooga 2023-08-07 23:57:25 -03:00 committed by GitHub
parent 584dd33424
commit 6d354bb50b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,7 +140,7 @@ def create_interface():
extensions_module.create_extensions_block() # Extensions block extensions_module.create_extensions_block() # Extensions block
# Launch the interface # Launch the interface
shared.gradio['interface'].queue() shared.gradio['interface'].queue(concurrency_count=64)
with OpenMonkeyPatch(): with OpenMonkeyPatch():
shared.gradio['interface'].launch( shared.gradio['interface'].launch(
prevent_thread_lock=True, prevent_thread_lock=True,