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:
Manuel Schmid 2024-02-25 18:44:28 +01:00 committed by GitHub
parent b5f019fb62
commit eebd7752ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -635,5 +635,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]
)