Update app.py
Browse files
app.py
CHANGED
|
@@ -63,35 +63,24 @@ def create_monitor_interface():
|
|
| 63 |
"content": [
|
| 64 |
{
|
| 65 |
"type": "text",
|
| 66 |
-
"text": """
|
| 67 |
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
- Material handling and storage
|
| 75 |
-
- Emergency access and exits
|
| 76 |
-
- Housekeeping and organization
|
| 77 |
-
- Lighting and visibility
|
| 78 |
-
- Ventilation and air quality
|
| 79 |
-
- Tool safety and maintenance
|
| 80 |
|
| 81 |
-
|
| 82 |
-
1. Exact location in the image (be specific: top-left, center-right, bottom, etc.)
|
| 83 |
-
2. Type of safety concern
|
| 84 |
-
3. Potential risk or hazard
|
| 85 |
-
4. Relevant safety violation
|
| 86 |
|
| 87 |
-
Format each observation
|
| 88 |
-
- <location>position:
|
| 89 |
|
| 90 |
-
|
| 91 |
-
- <location>
|
| 92 |
-
- <location>
|
| 93 |
-
|
| 94 |
-
Identify ALL safety issues, not just the obvious ones."""
|
| 95 |
},
|
| 96 |
{
|
| 97 |
"type": "image_url",
|
|
|
|
| 63 |
"content": [
|
| 64 |
{
|
| 65 |
"type": "text",
|
| 66 |
+
"text": """Analyze this workplace image for safety conditions and hazards. Focus only on safety aspects such as:
|
| 67 |
|
| 68 |
+
1. Work posture and ergonomics at the shown position
|
| 69 |
+
2. Use of PPE and safety equipment
|
| 70 |
+
3. Tool handling and work techniques
|
| 71 |
+
4. Environmental conditions and surroundings
|
| 72 |
+
5. Equipment and machinery safety
|
| 73 |
+
6. Ground conditions and trip hazards
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
|
| 75 |
+
Do not identify or describe any individuals. Instead, describe the safety conditions and actions observed.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 76 |
|
| 77 |
+
Format each safety observation as:
|
| 78 |
+
- <location>position:safety condition description</location>
|
| 79 |
|
| 80 |
+
Examples:
|
| 81 |
+
- <location>center:Improper kneeling posture without knee protection, risking joint injury</location>
|
| 82 |
+
- <location>left:Heavy machinery operating in close proximity to work area</location>
|
| 83 |
+
- <location>bottom:Uneven ground surface creating trip hazard near work zone</location>"""
|
|
|
|
| 84 |
},
|
| 85 |
{
|
| 86 |
"type": "image_url",
|