This commit is contained in:
Josh Yan 2024-08-28 10:23:41 -07:00
parent cc17b02b23
commit 4da5d5beaa

View File

@ -139,13 +139,13 @@ func CreateHandler(cmd *cobra.Command, args []string) error {
bar.Set(resp.Completed) bar.Set(resp.Completed)
} else if strings.Contains(resp.Status, "quantizing") { } else if strings.Contains(resp.Status, "quantizing") {
spinner.Stop() spinner.Stop()
if quantizeSpin != nil { if quantizeSpin != nil {
quantizeSpin.SetMessage(resp.Status) quantizeSpin.SetMessage(resp.Status)
} else { } else {
quantizeSpin = progress.NewSpinner(resp.Status) quantizeSpin = progress.NewSpinner(resp.Status)
p.Add("quantize", quantizeSpin) p.Add("quantize", quantizeSpin)
} }
} else if status != resp.Status { } else if status != resp.Status {
spinner.Stop() spinner.Stop()