airzy1 commited on
Commit
c462733
·
verified ·
1 Parent(s): be8cb5c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -84,12 +84,12 @@ def extract_json(text: str) -> Dict[str, Any]:
84
 
85
  return {"raw_output": text}
86
 
87
- DEFAULT_SYSTEM_PROMPT = "Analyze this pantry image in detail and list all items."
88
  DEFAULT_PROMPT = """
89
  Return only valid JSON.
90
- List each pantry item once.
91
  Use this format:
92
- {"items": ["item1", "item2"]}
93
  """
94
 
95
  @spaces.GPU(size="large", duration=60)
 
84
 
85
  return {"raw_output": text}
86
 
87
+ DEFAULT_SYSTEM_PROMPT = "Analyze this pantry image in detail, list all items"
88
  DEFAULT_PROMPT = """
89
  Return only valid JSON.
90
+ List each pantry items once.
91
  Use this format:
92
+ {["item1", "item2"]}
93
  """
94
 
95
  @spaces.GPU(size="large", duration=60)