Skip to content

Commit

Permalink
Merge pull request #49 from microsoft/nmetulev/downloadFix
Browse files Browse the repository at this point in the history
  • Loading branch information
nmetulev authored Dec 12, 2024
2 parents 27cce25 + 396269f commit 4c17241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AIDevGallery.Utils/ModelInformationHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public static async Task<List<ModelFileDetails>> GetDownloadFilesFromHuggingFace
await actionBlock.Completion;
}

return hfFiles.Select(f =>
return hfFiles.Where(f => f.Type != "directory").Select(f =>
new ModelFileDetails()
{
DownloadUrl = $"https://huggingface.co/{hfUrl.Organization}/{hfUrl.Repo}/resolve/{hfUrl.Ref}/{f.Path}",
Expand Down

0 comments on commit 4c17241

Please sign in to comment.