Update app.py
Browse files
app.py
CHANGED
|
@@ -50,11 +50,14 @@ GCS_BUCKET_NAME = "elderly-healthwatch-images"
|
|
| 50 |
GCS_CREDENTIALS_FILE = "gcs-credentials.json"
|
| 51 |
|
| 52 |
DEFAULT_VLM_PROMPT = (
|
| 53 |
-
"
|
| 54 |
-
"
|
| 55 |
-
"
|
|
|
|
|
|
|
| 56 |
)
|
| 57 |
|
|
|
|
| 58 |
LLM_SYSTEM_PROMPT = (
|
| 59 |
"System: This assistant MUST ONLY OUTPUT a single valid JSON object as its response — "
|
| 60 |
"no prose, no explanations, no code fences, no annotations."
|
|
|
|
| 50 |
GCS_CREDENTIALS_FILE = "gcs-credentials.json"
|
| 51 |
|
| 52 |
DEFAULT_VLM_PROMPT = (
|
| 53 |
+
"Analyze the provided face and eye images and extract only the following screening features: "
|
| 54 |
+
"pallor, sclera_yellowness, eye_redness, facial_mobility_metrics, and image_quality_checks. "
|
| 55 |
+
"Return a single valid JSON object only (no text, no markdown). "
|
| 56 |
+
"Each feature value must be a normalized confidence score between 0 and 1. "
|
| 57 |
+
"If a feature cannot be reliably determined, assign null."
|
| 58 |
)
|
| 59 |
|
| 60 |
+
|
| 61 |
LLM_SYSTEM_PROMPT = (
|
| 62 |
"System: This assistant MUST ONLY OUTPUT a single valid JSON object as its response — "
|
| 63 |
"no prose, no explanations, no code fences, no annotations."
|