mirror of
https://github.com/ollama/ollama.git
synced 2026-04-27 11:15:40 +02:00
rmv double msg
This commit is contained in:
@@ -127,6 +127,8 @@ func CreateHandler(cmd *cobra.Command, args []string) error {
|
||||
bars := make(map[string]*progress.Bar)
|
||||
fn := func(resp api.ProgressResponse) error {
|
||||
if resp.Digest != "" {
|
||||
spinner.Stop()
|
||||
|
||||
bar, ok := bars[resp.Digest]
|
||||
if !ok {
|
||||
bar = progress.NewBar(fmt.Sprintf("pulling %s...", resp.Digest[7:19]), resp.Total, resp.Completed)
|
||||
@@ -136,6 +138,8 @@ func CreateHandler(cmd *cobra.Command, args []string) error {
|
||||
|
||||
bar.Set(resp.Completed)
|
||||
} else if status != resp.Status {
|
||||
spinner.Stop()
|
||||
|
||||
status = resp.Status
|
||||
spinner := progress.NewSpinner(status)
|
||||
p.Add(status, spinner)
|
||||
|
||||
Reference in New Issue
Block a user