소스 검색

Fix server_name

Eric Wang 3 년 전
부모
커밋
46f587738c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      generate.py

+ 1 - 1
generate.py

@@ -27,7 +27,7 @@ def main(
     base_model: str = "",
     lora_weights: str = "tloen/alpaca-lora-7b",
     prompt_template: str = "",  # The prompt template to use, will default to alpaca.
-    server_name: str = "127.0.0.1",  # Allows to listen on all interfaces by providing '0.0.0.0'
+    server_name: str = "0.0.0.0",  # Allows to listen on all interfaces by providing '0.
     share_gradio: bool = False,
 ):
     base_model = base_model or os.environ.get("BASE_MODEL", "")