Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.
Python asraudiochineseemotion-recognitionfunasrmcp-servermultilingual-asropenai-compatible-apiparaformerpunctuationpytorchreal-time-asrspeaker-diarizationspeech-recognitionspeech-to-textstreaming-asrtranscriptionvllmvoice-activity-detectionwhisper-alternative
bugfix
游雁89f33ff70f47
diff --git a/funasr/download/download_model_from_hub.py b/funasr/download/download_model_from_hub.pyindex 80aa58846..e0cc7477c 100644--- a/funasr/download/download_model_from_hub.py+++ b/funasr/download/download_model_from_hub.py@@ -152,7 +152,10 @@ def download_from_hf(**kwargs):kwargs["jieba_usr_dict"] = os.path.join(model_or_path, "jieba_usr_dict")if isinstance(kwargs, DictConfig):kwargs = OmegaConf.to_container(kwargs, resolve=True)- if os.path.exists(os.path.join(model_or_path, "requirements.txt")):+ logging.warning(f'trust_remote_code: {kwargs.get("trust_remote_code", False)}')+ if os.path.exists(os.path.join(model_or_path, "requirements.txt")) and kwargs.get(+ "trust_remote_code", False+ ):requirements = os.path.join(model_or_path, "requirements.txt")print(f"Detect model requirements, begin to install it: {requirements}")from funasr.utils.install_model_requirements import install_requirementsdiff --git a/funasr/version.txt b/funasr/version.txtindex 5975b143a..434dcac4f 100644--- a/funasr/version.txt+++ b/funasr/version.txt@@ -1 +1 @@-1.2.8\ No newline at end of file+1.2.9\ No newline at end of file