Spaces:
Paused
Paused
Update inference.py
Browse files- inference.py +1 -0
inference.py
CHANGED
|
@@ -403,6 +403,7 @@ def process_document(file_path):
|
|
| 403 |
result = extract_part_json(image, part_name, model, processor, device)
|
| 404 |
end = time.time()
|
| 405 |
print("total time taken by the second model",end-start,"sec")
|
|
|
|
| 406 |
result["page_number"] = idx
|
| 407 |
page_results.append(result)
|
| 408 |
|
|
|
|
| 403 |
result = extract_part_json(image, part_name, model, processor, device)
|
| 404 |
end = time.time()
|
| 405 |
print("total time taken by the second model",end-start,"sec")
|
| 406 |
+
print(result)
|
| 407 |
result["page_number"] = idx
|
| 408 |
page_results.append(result)
|
| 409 |
|