more removal of unnecessary environment variables
This commit is contained in:
parent
b783673e0a
commit
425b9d6166
|
@ -79,6 +79,4 @@ def run_web_ui() -> None:
|
||||||
|
|
||||||
def run_web_demo() -> None:
|
def run_web_demo() -> None:
|
||||||
server_name = os.environ.get("GRADIO_SERVER_NAME", "0.0.0.0")
|
server_name = os.environ.get("GRADIO_SERVER_NAME", "0.0.0.0")
|
||||||
server_port = int(os.environ.get("GRADIO_SERVER_PORT", "7860"))
|
create_web_demo().queue().launch(server_name=server_name)
|
||||||
gradio_share = bool(int(os.environ.get("GRADIO_SHARE", "0")))
|
|
||||||
create_web_demo().queue().launch(share=gradio_share, server_name=server_name, server_port=server_port)
|
|
||||||
|
|
Loading…
Reference in New Issue