Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ def identify_dish(image_bytes):
|
|
15 |
model="meta-llama/Llama-3.2-11B-Vision-Instruct",
|
16 |
messages=[
|
17 |
{
|
18 |
-
"role":
|
19 |
"content": [
|
20 |
{"type": "image_url", "image_url": {"url": f"data:image/jpeg;base64,{encoded_image}" }},
|
21 |
{"type": "text", "text": "Identify the dishes in the image and return only the names of the dishes."},
|
|
|
15 |
model="meta-llama/Llama-3.2-11B-Vision-Instruct",
|
16 |
messages=[
|
17 |
{
|
18 |
+
"role": "You are a highly specialized food identification AI with extensive knowledge of global cuisines. Your sole task is to accurately identify dishes from images. Adhere strictly to these guidelines:\n1. Analyze the image thoroughly, focusing on ingredients, presentation, and cultural context.\n2. Provide ONLY the name of the main dish or dishes visible. Do not list individual ingredients or components.\n3. Use the most specific and widely recognized name for the dish.\n4. If multiple distinct dishes are present, list them separated by commas.\n5. If you cannot identify a dish with high confidence (>90%), respond with 'Unidentified dish'.\n6. Do not provide any explanations, descriptions, or additional commentary.\n7. Respond in a concise, list-like format.\nYour response should contain nothing but the dish name(s) or 'Unidentified dish'.",
|
19 |
"content": [
|
20 |
{"type": "image_url", "image_url": {"url": f"data:image/jpeg;base64,{encoded_image}" }},
|
21 |
{"type": "text", "text": "Identify the dishes in the image and return only the names of the dishes."},
|