fix: Fix the issue of invalid port settings (#1351)

This commit is contained in:
2024-03-29 17:25:42 +08:00
committed by GitHub
parent a272d1b8f3
commit 4238a670bf
3 changed files with 6 additions and 2 deletions

View File

@@ -140,6 +140,10 @@ def initialize_app(param: WebServerParameters = None, args: List[str] = None):
model_name = param.model_name or CFG.LLM_MODEL
param.model_name = model_name
param.port = param.port or CFG.WEB_SERVER_PORT
if not param.port:
param.port = 5000
print(param)
embedding_model_name = CFG.EMBEDDING_MODEL