mirror of
https://github.com/ollama/ollama-js.git
synced 2026-02-03 17:42:50 -06:00
examples: fix imagegen first step printing (#273)
This commit is contained in:
parent
ef411aa67e
commit
f23d7eeb6d
@ -21,7 +21,7 @@ async function main() {
|
||||
console.log('\nImage saved to output.png')
|
||||
} else if (part.total) {
|
||||
// Progress update
|
||||
process.stdout.write(`\rProgress: ${part.completed}/${part.total}`)
|
||||
process.stdout.write(`\rProgress: ${part.completed ?? 0}/${part.total}`)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user