mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
fix: allow path_outputs to be outside of root dir (#2332)
allows Gradio to serve outputs when folder has been changed in the config
This commit is contained in:
@@ -635,5 +635,6 @@ shared.gradio_root.launch(
|
|||||||
server_port=args_manager.args.port,
|
server_port=args_manager.args.port,
|
||||||
share=args_manager.args.share,
|
share=args_manager.args.share,
|
||||||
auth=check_auth if (args_manager.args.share or args_manager.args.listen) and auth_enabled else None,
|
auth=check_auth if (args_manager.args.share or args_manager.args.listen) and auth_enabled else None,
|
||||||
|
allowed_paths=[modules.config.path_outputs],
|
||||||
blocked_paths=[constants.AUTH_FILENAME]
|
blocked_paths=[constants.AUTH_FILENAME]
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user