Spaces:
Runtime error
Runtime error
Make default prompt more explicit on when to output YES or NO
Browse files
app.py
CHANGED
|
@@ -269,7 +269,10 @@ def main():
|
|
| 269 |
|
| 270 |
interval = gr.Slider(100, 20000, step=100, value=3000, label='Interval (ms)')
|
| 271 |
sys_p = gr.Textbox(lines=2, value="Focus on key dramatic action…", label='System Prompt')
|
| 272 |
-
usr_p = gr.Textbox(lines=1, value="Analyze the image and determine if
|
|
|
|
|
|
|
|
|
|
| 273 |
reset_clip = gr.Checkbox(value=False, label="Reset CLIP handler each frame")
|
| 274 |
cam = gr.Image(sources=['webcam'], streaming=True, label='Webcam Feed')
|
| 275 |
cap = gr.Textbox(interactive=False, label='Caption')
|
|
|
|
| 269 |
|
| 270 |
interval = gr.Slider(100, 20000, step=100, value=3000, label='Interval (ms)')
|
| 271 |
sys_p = gr.Textbox(lines=2, value="Focus on key dramatic action…", label='System Prompt')
|
| 272 |
+
usr_p = gr.Textbox(lines=1, value="""Analyze the provided image and determine if any person is lying on the floor.
|
| 273 |
+
Output "YES" only if at least one person is clearly lying down on a floor or flat surface (e.g., fully reclined, supine, prone, or in a fetal position).
|
| 274 |
+
Output "NO" in all other cases, including if no person is present, if people are only standing, sitting, kneeling, crouching, or if the position is ambiguous (e.g., partially on the floor but not fully lying down).
|
| 275 |
+
Respond with exactly "YES" or "NO" — no additional text, explanations, or punctuation.""", label='User Prompt')
|
| 276 |
reset_clip = gr.Checkbox(value=False, label="Reset CLIP handler each frame")
|
| 277 |
cam = gr.Image(sources=['webcam'], streaming=True, label='Webcam Feed')
|
| 278 |
cap = gr.Textbox(interactive=False, label='Caption')
|