mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-23 06:12:50 +08:00
remove unnecessary environment variable usage
Former-commit-id: b783673e0aa064963d9cce712378f73c9b5ff51d
This commit is contained in:
parent
5ff89a0f32
commit
de509fa081
@ -5,9 +5,7 @@ from llmtuner.webui.interface import create_ui
|
||||
|
||||
def main():
|
||||
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)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
Loading…
x
Reference in New Issue
Block a user