gradio
05f935c8 - GRADIO_SHARE Environment Variable (#7986)

Commit
1 year ago
GRADIO_SHARE Environment Variable (#7986) * GRADIO_SHARE Environment Variable An environment variable to force `share=True` when launching gradio, regardless of what was passed in as argument. Useful for taking any Gradio-powered app and making them run with the gradio.live link WITHOUT having to update the code. * make it work for both share=True and share=False * correct parsing - `"GRADIO_SHARE": "0"` => `False` - `"GRADIO_SHARE": "1"` => `True` * comment * Apply GRADIO_SHARE only if it's not specified in code. * one line * remove line * add changeset * included in docstring * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Parents
Loading