mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-10-16 00:28:10 +08:00
yet another removal of unnecessary environment variables
Former-commit-id: a07726028f0287de28e4751672b27efe0efc6477
This commit is contained in:
parent
c213f2a9a9
commit
2aeae4b88b
@ -72,9 +72,7 @@ def create_web_demo() -> gr.Blocks:
|
||||
|
||||
def run_web_ui() -> 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_ui().queue().launch(share=gradio_share, server_name=server_name, server_port=server_port)
|
||||
create_ui().queue().launch(server_name=server_name)
|
||||
|
||||
|
||||
def run_web_demo() -> None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user