Spaces:
Sleeping
Sleeping
Create dummy.py
Browse files
dummy.py
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
output_test = """{
|
| 2 |
+
"status": "success",
|
| 3 |
+
"message": "Document processed successfully",
|
| 4 |
+
"filename": "Contoh WOD CM REPLACE POSITIVE.pdf",
|
| 5 |
+
"wod_type": "REPLACEMENT",
|
| 6 |
+
"results": {
|
| 7 |
+
"prediction": "POSITIVE",
|
| 8 |
+
"summary": {
|
| 9 |
+
"Merchant Signboard Photo": {
|
| 10 |
+
"reasoning": "The requirement is not met as most pages (3, 4, 5, 6, 7) do not contain a merchant signboard photo, except for Page 2 which shows a clear signboard with the store's name.",
|
| 11 |
+
"status": "true"
|
| 12 |
+
},
|
| 13 |
+
"EDC Machine Photo": {
|
| 14 |
+
"reasoning": "The EDC machine photo is visible on Pages 2, 4, and 5, with Page 4 allowing for SN extraction and Page 5 showing the EDC machine but not the SN, SAM Card, or SIM Card details.",
|
| 15 |
+
"status": "true"
|
| 16 |
+
},
|
| 17 |
+
"EDC Desk Placement": {
|
| 18 |
+
"reasoning": "The EDC machine is shown on a desk on Pages 2 and 4, meeting the requirement, but is not visible or clear on other pages.",
|
| 19 |
+
"status": "true"
|
| 20 |
+
},
|
| 21 |
+
"MID and TID Extraction": {
|
| 22 |
+
"reasoning": "MID and TID are visible and extracted from various documents across pages, with specific values provided on Page 6 (MID: 71617478578, TID: 80951490) and Page 7 (MID: 71617478578).",
|
| 23 |
+
"status": "true"
|
| 24 |
+
},
|
| 25 |
+
"Photo Timestamps": {
|
| 26 |
+
"reasoning": "Timestamps are visible on Pages 2 and 4 for all attached photos, but are not consistently available across other pages.",
|
| 27 |
+
"status": "true"
|
| 28 |
+
},
|
| 29 |
+
"Sales Draft Clarity": {
|
| 30 |
+
"reasoning": "The Sales Draft is clear and legible on Page 2, but is not available on other pages (3, 4, 5, 6, 7) for assessment.",
|
| 31 |
+
"status": "true"
|
| 32 |
+
},
|
| 33 |
+
"Total Transaction Extraction Rp13": {
|
| 34 |
+
"reasoning": "The transaction total of Rp13 is clearly shown on Page 2 and mentioned on Page 6, but the actual Sales Draft is not available on other pages.",
|
| 35 |
+
"status": "true"
|
| 36 |
+
},
|
| 37 |
+
"Transaction Date Extraction": {
|
| 38 |
+
"reasoning": "The transaction date ('17 Jan 2025 17:37:54') is available on Page 2, but not on other pages due to the absence of a Sales Draft.",
|
| 39 |
+
"status": "true"
|
| 40 |
+
},
|
| 41 |
+
"Merchant PIC Signature": {
|
| 42 |
+
"reasoning": "The merchant's signature is visible on Pages 3, 5, and 6, indicating a signed handover report, but is not consistently available across all pages.",
|
| 43 |
+
"status": "true"
|
| 44 |
+
},
|
| 45 |
+
"Training Form Attachment Requested PM": {
|
| 46 |
+
"reasoning": "The merchant training form is attached on Page 3, but not available or mentioned on other pages, except for Page 6 which mentions the possibility of training but does not confirm its completion or attachment.",
|
| 47 |
+
"status": "true"
|
| 48 |
+
},
|
| 49 |
+
"BAST Document Attachment": {
|
| 50 |
+
"reasoning": "The BAST document is attached on Pages 3, 6, and 7, with Page 6 and 7 providing a signed handover report that serves as a form of BAST document.",
|
| 51 |
+
"status": "true"
|
| 52 |
+
}
|
| 53 |
+
}
|
| 54 |
+
}
|
| 55 |
+
}
|
| 56 |
+
"""
|