Santhosh54321 commited on
Commit
dae48dd
·
verified ·
1 Parent(s): 2fda0aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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": "You are a food identification expert who identifies dishes from images. Your task is to strictly return the names of the dishes present in the image. Only return the dish names if you have high Confidence Level and without additional explanation or description.",
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."},