credent007 commited on
Commit
61a8a58
·
verified ·
1 Parent(s): eeb5ad5

Update json_handling.py

Browse files
Files changed (1) hide show
  1. json_handling.py +1 -2
json_handling.py CHANGED
@@ -38,8 +38,7 @@ def process_whole_doc(file_path):
38
  complete_json = {}
39
 
40
  # PART_NAME = "PART-1 - BILL OF ENTRY SUMMARY" # you can change per doc type
41
-
42
- for i,image in images:
43
  partial_json = process_document(image)
44
  print(partial_json)
45
  # 🔹 Extract only "result"
 
38
  complete_json = {}
39
 
40
  # PART_NAME = "PART-1 - BILL OF ENTRY SUMMARY" # you can change per doc type
41
+ for i, image in enumerate(images, start=1):
 
42
  partial_json = process_document(image)
43
  print(partial_json)
44
  # 🔹 Extract only "result"