You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

9 lines
218 B

from _llm import LLM
llm = LLM()
image = '/home/lasse/sci/test_image.png'
image_bytes = open(image, 'rb').read()
print(type(image_bytes))
response = llm.generate('What is this?', images=[image_bytes])
print(response)