mirror of
https://github.com/mudler/LocalAI.git
synced 2025-06-24 03:35:00 +00:00
feat(backend gallery): display download progress
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
parent
9bcf4c56f1
commit
5eec573722
4 changed files with 61 additions and 7 deletions
|
@ -256,7 +256,7 @@ func (uri URI) DownloadFile(filePath, sha string, fileN, total int, downloadStat
|
|||
return fmt.Errorf("failed to get image %q: %v", url, err)
|
||||
}
|
||||
|
||||
return oci.ExtractOCIImage(img, filepath.Dir(filePath))
|
||||
return oci.ExtractOCIImage(img, filepath.Dir(filePath), downloadStatus)
|
||||
}
|
||||
|
||||
// Check if the file already exists
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue