Skip to content

Commit 2479832

Browse files
authored
fix(uri): consider subfolders when expanding huggingface URLs (#7634)
Update uri.go Signed-off-by: mintyleaf <mintyleafdev@gmail.com>
1 parent 5515119 commit 2479832

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/downloader/uri.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ func (s URI) ResolveURL() string {
225225
repo := repoPieces[1]
226226

227227
branch := "main"
228-
filepath := repoPieces[2]
228+
filepath := strings.Join(repoPieces[2:], "/")
229229

230230
if len(repoID) > 1 {
231231
if strings.Contains(repo, "@") {

0 commit comments

Comments
 (0)