Spaces:
Running
Running
output_test = """{ | |
"status": "success", | |
"message": "Document processed successfully", | |
"filename": "Contoh WOD CM VISIT NEGATIVE.pdf", | |
"wod_type": "VISIT", | |
"extracted_data": { | |
"Nama Merchant/Agent": "KANGKUNG BAKAR TEGAL MB", | |
"Alamat Merchant/Agent": "KANGKUNG BAKAR RITA SUPERMALL LT UG TEGAL", | |
"City": "Tegal (Kota)", | |
"SN EDC": "238JKD8M4010", | |
"TID MTI": "78434342", | |
"MID MTI": "71161778488", | |
"SIM CARD": "6210005390622461", | |
"SAM CARD": "-", | |
"Started On": "13-Jan-2025 08:23" | |
}, | |
"results": { | |
"prediction": "NEGATIVE", | |
"summary": { | |
"Merchant Signboard Photo": { | |
"reasoning": "The merchant signboard photo is partially verified with the name 'BAKAR' visible on pages 2 and 5, but the full name 'KANGKUNG BAKAR TEGAL MB' is mentioned in the text below the image on page 5.", | |
"status": "true" | |
}, | |
"EDC Machine Photo": { | |
"reasoning": "The EDC machine photo is verified on pages 2 and 7, with the EDC machine screen and internal components visible, but the Serial Number (SN) is not clearly visible.", | |
"status": "true" | |
}, | |
"EDC Desk Placement": { | |
"reasoning": "The EDC machine's placement on the counter/cashier's desk is only verified on page 2.", | |
"status": "true" | |
}, | |
"MID and TID Extraction": { | |
"reasoning": "MID and TID are extracted successfully from sales drafts on multiple pages (2, 3, 4, 5, 6) with varying values, including TID: '17694788', '17487603' and MID: '71667788', '00000217104875', '71161778488'.", | |
"status": "true" | |
}, | |
"Photo Timestamps": { | |
"reasoning": "Timestamps are present on photos across multiple pages (2, 3, 4, 5, 6), with dates ranging from '2021 01 13 20:06:40' to '2025 01 13 20:03'.", | |
"status": "true" | |
}, | |
"Sales Draft Clarity": { | |
"reasoning": "Sales drafts are clear and legible on pages 2, 3, 4, 5, and 6.", | |
"status": "true" | |
}, | |
"Total Transaction Extraction Rp12": { | |
"reasoning": "The total transaction value of 'Rp12' is not found on any of the sales drafts or receipts.", | |
"status": "false" | |
}, | |
"Total Transaction Extraction Rp13": { | |
"reasoning": "The total transaction value of 'Rp13' is successfully extracted from sales drafts on pages 2, 3, 4, 5, and 6.", | |
"status": "true" | |
}, | |
"Training Form Attachment": { | |
"reasoning": "The merchant training form is not attached or visible in the provided documents across all pages.", | |
"status": "false" | |
} | |
} | |
} | |
} | |
""" |