mirror of
https://github.com/ollama/ollama-python.git
synced 2026-05-01 11:48:17 +08:00
fix example
This commit is contained in:
parent
db63df400f
commit
6629f5c455
@ -15,4 +15,4 @@ for response in generate(model='x/z-image-turbo', prompt=prompt, stream=True):
|
||||
print('\nImage saved to output.png')
|
||||
elif response.total:
|
||||
# Progress update
|
||||
print(f'Progress: {response.completed}/{response.total}', end='\r')
|
||||
print(f'Progress: {response.completed or 0}/{response.total}', end='\r')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user