model_calling.py 570 Bytes
import final_module
import time


questions = ["what is the address of company?",
                "what is the date of issue?",
                #  "What is the invoice number?",
            ]

rawtext_filenme = "extracted_text.txt"
image_filename = "output_image.png"
filename = "invoice_10.pdf"
start = time.time()
final_module.process_pdf_to_image_and_text(filename,1,questions, rawtext_filenme, image_filename)
print("time taken " , ((time.time() - start) / 60))
print("PDF to image conversion and completion generation complete.")
print("check your folder")
#7241