fix: allow path_outputs to be outside of root dir

allows Gradio to serve outputs when folder has been changed in the config
This commit is contained in:
Manuel Schmid 2024-02-22 23:04:41 +01:00
parent 1c999be8c8
commit acae289dc6
No known key found for this signature in database
GPG Key ID: 32C4F7569B40B84B
1 changed files with 1 additions and 0 deletions

View File

@ -626,5 +626,6 @@ shared.gradio_root.launch(
server_port=args_manager.args.port,
share=args_manager.args.share,
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]
)