capradeepgujaran commited on
Commit
07117f0
1 Parent(s): b2dfc0b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -25
app.py CHANGED
@@ -63,35 +63,24 @@ def create_monitor_interface():
63
  "content": [
64
  {
65
  "type": "text",
66
- "text": """As a comprehensive safety expert, analyze this image for ALL potential safety concerns and hazards, including:
67
 
68
- - Personal Protective Equipment (PPE)
69
- - Ergonomic issues and posture
70
- - Fire and electrical hazards
71
- - Chemical and environmental hazards
72
- - Machine and equipment safety
73
- - Fall protection and heights
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
- For each safety issue identified, provide:
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 exactly as:
88
- - <location>position:detailed safety issue description</location>
89
 
90
- Example:
91
- - <location>top-right:Exposed electrical wiring creating shock hazard</location>
92
- - <location>bottom-left:Improperly stored chemicals without labeling</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",