Update app.py
Browse files
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
|
| 88 |
DEFAULT_PROMPT = """
|
| 89 |
Return only valid JSON.
|
| 90 |
-
List each pantry
|
| 91 |
Use this format:
|
| 92 |
-
{
|
| 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)
|