more removal of unnecessary environment variables

Former-commit-id: 59ef1a6e0d81585a6c010143d05fcfae26d40c00
This commit is contained in:
cocktailpeanut 2024-05-09 01:32:00 -04:00
parent 333f4a69bb
commit c213f2a9a9

View File

@ -79,6 +79,4 @@ def run_web_ui() -> None:
def run_web_demo() -> None:
server_name = os.environ.get("GRADIO_SERVER_NAME", "0.0.0.0")
server_port = int(os.environ.get("GRADIO_SERVER_PORT", "7860"))
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)
create_web_demo().queue().launch(server_name=server_name)