mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-22 22:02:51 +08:00
more removal of unnecessary environment variables
Former-commit-id: 425b9d616622467487339d5055b5d513c0fe7814
This commit is contained in:
parent
de509fa081
commit
58c5a5afaf
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user