Commit a7b7e2f4 by 王欣伟

修改:增加热词后屏蔽热词模块的info日志

1 parent a7e51f52
......@@ -48,6 +48,9 @@ def setup_logging(worker_index: int = 0) -> None:
# 降低第三方库的冗余日志
logging.getLogger("urllib3").setLevel(logging.WARNING)
logging.getLogger("modelscope").setLevel(logging.WARNING)
# 屏蔽 funasr 热词解析的刷屏日志(每次 generate 都会打印 INFO 级别的热词列表)
logging.getLogger("funasr.models.seaco_paraformer").setLevel(logging.WARNING)
logging.getLogger("funasr.models.contextual_paraformer").setLevel(logging.WARNING)
def make_worker_id(worker_index: int) -> str:
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!