# ask model to read screenshot and convert to markdown stream = ollama.chat( model='llama3.2-vision', messages=[{ 'role': 'user', 'content': 'Can you transcribe the text from this screenshot in a markdown format?', 'images': ['images/5-ai-projects.jpeg'] }], stream=True, ) # read stream for chunk in stream: print(chunk['message']['content'], end='', flush=True)