Update fun_local.py

This commit is contained in:
hrz
2025-06-06 14:08:38 +08:00
committed by GitHub
parent 8df9846ad7
commit 3eb3a4502f
@@ -43,7 +43,7 @@ class ASRProvider(ASRProviderBase):
min_mem_bytes = 2 * 1024 * 1024 * 1024
total_mem = psutil.virtual_memory().total
if total_mem < min_mem_bytes:
logger.bind(tag=TAG).error(f"可用内存不足2G,当前仅有 {total_mem / (1024*1024):.2f} MB")
logger.bind(tag=TAG).error(f"可用内存不足2G,当前仅有 {total_mem / (1024*1024):.2f} MB,可能无法启动FunASR")
self.interface_type = InterfaceType.LOCAL
self.model_dir = config.get("model_dir")