Skip to content

Instantly share code, notes, and snippets.

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),
],
},