This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_product_from_llm(frames): | |
PROMPT_MESSAGES = [ | |
{ | |
"role": "user", | |
"content": [ | |
"In 4 words or fewer, identify the main product in this advertisement. Be specific (e.g., car make and model).", | |
*map(lambda x: {"image": x, "resize": 350}, frames), | |
], | |
}, |
OlderNewer