Jelajahi Sumber

fix add_file bug

shixian.shi 2 tahun lalu
induk
melakukan
09372cb279
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      funasr/download/download_from_hub.py

+ 1 - 1
funasr/download/download_from_hub.py

@@ -63,7 +63,7 @@ def add_file_root_path(model_or_path: str, file_path_metas: dict, cfg = {}):
             elif isinstance(v, dict):
                 if k not in cfg:
                     cfg[k] = {}
-                return add_file_root_path(model_or_path, v, cfg[k])
+                add_file_root_path(model_or_path, v, cfg[k])
     
     return cfg