mirror of
https://github.com/tcsenpai/ollama.git
synced 2025-06-08 04:05:20 +00:00
lint
This commit is contained in:
parent
cc17b02b23
commit
4da5d5beaa
@ -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()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user