From e65b1f701abca03bf3a1b5fbb200392aabd38c22 Mon Sep 17 00:00:00 2001
From: zhifu gao <zhifu.gzf@alibaba-inc.com>
Date: 星期四, 20 六月 2024 17:09:33 +0800
Subject: [PATCH] Dev gzf deepspeed (#1833)

---
 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