From 5b4363a3e1afa367cee590cae539b54ba1d9de07 Mon Sep 17 00:00:00 2001
From: Shi Xian <40013335+R1ckShi@users.noreply.github.com>
Date: 星期一, 24 六月 2024 10:44:11 +0800
Subject: [PATCH] Merge pull request #1838 from Chen1399/patch-1

---
 funasr/download/download_from_hub.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/funasr/download/download_from_hub.py b/funasr/download/download_from_hub.py
index 46263c9..f1c01bd 100644
--- a/funasr/download/download_from_hub.py
+++ b/funasr/download/download_from_hub.py
@@ -84,6 +84,12 @@
         from funasr.utils.install_model_requirements import install_requirements
 
         install_requirements(requirements)
+    if kwargs.get("trust_remote_code", False):
+
+        import model
+
+        # from funasr.register import tables
+        # tables.print("model")
     return kwargs
 
 

--
Gitblit v1.9.1