airzy1 commited on
Commit
fc3b462
·
verified ·
1 Parent(s): da7b320

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -91,7 +91,13 @@ def extract_json(text: str) -> Dict[str, Any]:
91
  return {"raw_output": text}
92
 
93
 
94
- PROMPT = "Analyze this pantry image in detail, list all ingredient as short JSON list"
 
 
 
 
 
 
95
 
96
 
97
 
 
91
  return {"raw_output": text}
92
 
93
 
94
+ PROMPT = """
95
+ Return only valid JSON.
96
+ List each pantry ingredient once.
97
+ Do not repeat items or sentences.
98
+ Use this format:
99
+ {"items": ["item1", "item2"]}
100
+ """
101
 
102
 
103