将FunASR自动更新参数加入到环境变量

main
Bifang 2026-10-09 14:26:22 +08:00
parent 83bbdd5d5f
commit ebc7195f3d
2 changed files with 8 additions and 1 deletions

View File

@ -37,6 +37,10 @@ def _auto_model_common_kwargs() -> Dict[str, Any]:
kwargs = dict(settings.FUNASR_AUTOMODEL_KWARGS)
# Keep all AutoModel instances consistent with the environment setting.
kwargs["disable_update"] = settings.FUNASR_DISABLE_UPDATE
logger.info(
"FunASR AutoModel update check disabled: %s (FUNASR_DISABLE_UPDATE)",
settings.FUNASR_DISABLE_UPDATE,
)
return kwargs

View File

@ -40,7 +40,10 @@ def _run_server(workers: int) -> None:
from app.core.config import settings
import uvicorn
print(f"Qwen3-ASR | http://{settings.HOST}:{settings.PORT} | {settings.DEVICE}")
print(
f"Qwen3-ASR | http://{settings.HOST}:{settings.PORT} | {settings.DEVICE} "
f"| FunASR update check disabled={settings.FUNASR_DISABLE_UPDATE}"
)
if workers == 1:
from app.bootstrap import run_cli_preflight