Skip to content

Commit 6eb9f55

Browse files
committed
Update local model downloading new lines (#1163)
(cherry picked from commit 0748099)
1 parent 65ec0d3 commit 6eb9f55

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cli/local/model_cache.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ func CacheModels(apiSpec *spec.API, awsClient *aws.Client) ([]*spec.LocalModelCa
5454
localModelCaches[i].TargetPath = apiSpec.Predictor.Models[i].Name
5555
}
5656

57+
if len(localModelCaches) > 0 {
58+
fmt.Println("") // Newline to group all of the model information
59+
}
60+
5761
return localModelCaches, nil
5862
}
5963

@@ -128,8 +132,6 @@ func CacheModel(modelPath string, awsClient *aws.Client) (*spec.LocalModelCache,
128132
return nil, err
129133
}
130134

131-
fmt.Println("") // Newline to group all of the model information
132-
133135
localModelCache.HostPath = modelDir
134136

135137
return &localModelCache, nil

0 commit comments

Comments
 (0)