mirror of
https://github.com/ollama/ollama-js.git
synced 2026-07-01 11:16:25 -04:00
examples: fix imagegen first step printing (#273)
This commit is contained in:
@@ -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}`)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user