From 73e2dd7f54b3a8c1a8df0cbdbeed4483a44180cf Mon Sep 17 00:00:00 2001 From: Christof Kaufmann <christof.kaufmann@hs-bochum.de> Date: Wed, 6 Nov 2024 14:36:02 +0100 Subject: [PATCH] Add description of environment variables of gradio --- gradio.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gradio.md b/gradio.md index e928f2e..e003b86 100644 --- a/gradio.md +++ b/gradio.md @@ -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. + +## 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 +``` -- GitLab