Skip to content
Snippets Groups Projects
Commit 73e2dd7f authored by Christof Kaufmann's avatar Christof Kaufmann
Browse files

Add description of environment variables of gradio

parent 32a6574a
Branches
No related tags found
No related merge requests found
...@@ -95,3 +95,11 @@ demo.launch(share=True, height=800) ...@@ -95,3 +95,11 @@ demo.launch(share=True, height=800)
``` ```
This will use gradio's service to make a public link tunneling to the gradio server. This will use gradio's service to make a public link tunneling to the gradio server.
## Environment Variables
If you need to set such a parameter, but the script you run is not your code, you can still set these parameters via [environment variables](https://www.gradio.app/guides/environment-variables). For example to start `llamafactory`'s webui, which is built using gradio, with changed parameters:
``` bash
GRADIO_SERVER_NAME="0.0.0.0" llamafactory-cli webui
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment