Spaces:
Running
Running
Update update_docx_with_pdf.py
Browse files- update_docx_with_pdf.py +13 -5
update_docx_with_pdf.py
CHANGED
|
@@ -37,11 +37,19 @@ Instructions:
|
|
| 37 |
- DO NOT add any extra fields, and do not change the JSON structure.
|
| 38 |
- Update ALL nested sections properly (like "Operator Declaration" with its "Print Name" and "Position Title")
|
| 39 |
- Make sure to update both the main sections AND the flattened keys (like "Operator Declaration.Print Name")
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
-
|
| 44 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
- Output ONLY the updated JSON, as raw JSON (no markdown, no extra text, no greetings).
|
| 46 |
- Make sure the JSON is valid and ready to use.
|
| 47 |
- Update operator names, auditor names, and all personal details consistently throughout all sections."""
|
|
|
|
| 37 |
- DO NOT add any extra fields, and do not change the JSON structure.
|
| 38 |
- Update ALL nested sections properly (like "Operator Declaration" with its "Print Name" and "Position Title")
|
| 39 |
- Make sure to update both the main sections AND the flattened keys (like "Operator Declaration.Print Name")
|
| 40 |
+
|
| 41 |
+
CRITICAL - For Operator Declaration section:
|
| 42 |
+
- The "Print Name" should be the OPERATOR/COMPANY REPRESENTATIVE's name, NOT the auditor's name
|
| 43 |
+
- Look for the "OPERATOR DECLARATION" section at the end of the document
|
| 44 |
+
- The person signing the operator declaration is usually someone from the company like a manager, compliance officer, or director
|
| 45 |
+
- Common examples: "Peter Sheppard", "Jeff Nitschke", etc.
|
| 46 |
+
- AVOID using the auditor's name (typically "Greg Dyer" in these documents)
|
| 47 |
+
- The "Position Title" should be their job role (e.g., "Compliance Officer", "Director", "Manager", "WHSE Compliance Officer")
|
| 48 |
+
|
| 49 |
+
For Attendance List:
|
| 50 |
+
- Extract all people listed with their roles (e.g., "Peter Sheppard - Compliance", "Greg Dyer - Auditor")
|
| 51 |
+
- Include both operator staff and auditor in the attendance list
|
| 52 |
+
|
| 53 |
- Output ONLY the updated JSON, as raw JSON (no markdown, no extra text, no greetings).
|
| 54 |
- Make sure the JSON is valid and ready to use.
|
| 55 |
- Update operator names, auditor names, and all personal details consistently throughout all sections."""
|