Skip to content

Commit

Permalink
fix add_file bug
Browse files Browse the repository at this point in the history
  • Loading branch information
R1ckShi committed Jan 24, 2024
1 parent ec1c462 commit 09372cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion funasr/download/download_from_hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 09372cb

Please sign in to comment.