Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -128,12 +128,16 @@ def run_vlm_analysis(payload: RobotWatchPayload):
|
|
| 128 |
|
| 129 |
# System prompt instructs VLM to return strict JSON
|
| 130 |
system_prompt = """
|
| 131 |
-
Respond in STRICT JSON ONLY. Ensure the
|
| 132 |
{
|
| 133 |
"description": "...",
|
| 134 |
-
"human": "...",
|
| 135 |
"environment": "...",
|
| 136 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 137 |
}
|
| 138 |
"""
|
| 139 |
|
|
|
|
| 128 |
|
| 129 |
# System prompt instructs VLM to return strict JSON
|
| 130 |
system_prompt = """
|
| 131 |
+
Respond in STRICT JSON ONLY. Put more details in Description. Ensure all the fields are never empty; list general items if specific ones are not clear.
|
| 132 |
{
|
| 133 |
"description": "...",
|
|
|
|
| 134 |
"environment": "...",
|
| 135 |
+
"indoor_or_outdoor": "...",
|
| 136 |
+
"lighting_condition": "..."
|
| 137 |
+
"human": "...",
|
| 138 |
+
"animals": "...",
|
| 139 |
+
"objects": [],
|
| 140 |
+
"hazards": [],
|
| 141 |
}
|
| 142 |
"""
|
| 143 |
|