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
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
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,