image_to_prompt
from zerogpt.utils.tools.image_to_prompt import image_to_prompt
# Simple example
print(image_to_prompt('./image.png'))print(image_to_prompt('./image.png', prompt_style='short'))# Passing a local file path
print(image_to_prompt('./image.png'))
# Passing an image URL
print(image_to_prompt('https://example.com/image1'))
# Passing a list of image URLs
print(image_to_prompt(['https://example.com/image1', 'https://example.com/image2']))Last updated