Spaces:
Runtime error
Runtime error
Update webui.py
Browse files
webui.py
CHANGED
@@ -645,8 +645,6 @@ with shared.gradio_root:
|
|
645 |
generate_button.click(lambda: (gr.update(visible=True, interactive=True), gr.update(visible=True, interactive=True), gr.update(visible=False, interactive=False), [], True),
|
646 |
outputs=[stop_button, skip_button, generate_button, gallery, state_is_generating]) \
|
647 |
.then(fn=refresh_seed, inputs=[seed_random, image_seed], outputs=image_seed) \
|
648 |
-
.then(fn=get_task, inputs=ctrls, outputs=currentTask) \
|
649 |
-
.then(fn=generate_clicked, inputs=currentTask, outputs=[progress_html, progress_window, progress_gallery, gallery]) \
|
650 |
.then(lambda: (gr.update(visible=True, interactive=True), gr.update(visible=False, interactive=False), gr.update(visible=False, interactive=False), False),
|
651 |
outputs=[generate_button, stop_button, skip_button, state_is_generating]) \
|
652 |
.then(fn=update_history_link, outputs=history_link) \
|
@@ -678,11 +676,11 @@ def dump_default_english_config():
|
|
678 |
# dump_default_english_config()
|
679 |
|
680 |
shared.gradio_root.launch()
|
681 |
-
|
682 |
-
|
683 |
-
|
684 |
-
|
685 |
-
|
686 |
-
|
687 |
-
|
688 |
-
|
|
|
645 |
generate_button.click(lambda: (gr.update(visible=True, interactive=True), gr.update(visible=True, interactive=True), gr.update(visible=False, interactive=False), [], True),
|
646 |
outputs=[stop_button, skip_button, generate_button, gallery, state_is_generating]) \
|
647 |
.then(fn=refresh_seed, inputs=[seed_random, image_seed], outputs=image_seed) \
|
|
|
|
|
648 |
.then(lambda: (gr.update(visible=True, interactive=True), gr.update(visible=False, interactive=False), gr.update(visible=False, interactive=False), False),
|
649 |
outputs=[generate_button, stop_button, skip_button, state_is_generating]) \
|
650 |
.then(fn=update_history_link, outputs=history_link) \
|
|
|
676 |
# dump_default_english_config()
|
677 |
|
678 |
shared.gradio_root.launch()
|
679 |
+
inbrowser=args_manager.args.in_browser,
|
680 |
+
server_name=args_manager.args.listen,
|
681 |
+
server_port=args_manager.args.port,
|
682 |
+
share=args_manager.args.share,
|
683 |
+
auth=check_auth if (args_manager.args.share or args_manager.args.listen) and auth_enabled else None,
|
684 |
+
allowed_paths=[modules.config.path_outputs],
|
685 |
+
blocked_paths=[constants.AUTH_FILENAME]
|
686 |
+
)
|