fix for extensions' javascript not loading

This commit is contained in:
AUTOMATIC 2022-11-02 07:26:31 +03:00
parent 55688c4880
commit 5510c282b1
1 changed files with 2 additions and 1 deletions

View File

@ -671,6 +671,8 @@ def create_ui(wrap_gradio_gpu_call):
import modules.img2img import modules.img2img
import modules.txt2img import modules.txt2img
reload_javascript()
parameters_copypaste.reset() parameters_copypaste.reset()
with gr.Blocks(analytics_enabled=False) as txt2img_interface: with gr.Blocks(analytics_enabled=False) as txt2img_interface:
@ -1782,4 +1784,3 @@ def load_javascript(raw_response):
reload_javascript = partial(load_javascript, gradio.routes.templates.TemplateResponse) reload_javascript = partial(load_javascript, gradio.routes.templates.TemplateResponse)
reload_javascript()