Downloader: Fix handling of include pattern
If an include or exclude pattern is provided, include should include all files by default. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
parent
21a01741c9
commit
50e0b71690
2 changed files with 6 additions and 2 deletions
|
|
@ -121,7 +121,7 @@ async def hf_repo_download(
|
|||
repo_type = "lora"
|
||||
|
||||
if include or exclude:
|
||||
include_patterns = unwrap(include, [])
|
||||
include_patterns = unwrap(include, ["*"])
|
||||
exclude_patterns = unwrap(exclude, [])
|
||||
|
||||
file_list = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue