from pdfminer.high_level import extract_text from json_helper import InputData as input def extract_text_from_pdf(pdf_path): return extract_text(pdf_path) text = extract_text_from_pdf(r"/home/ml2/Desktop/resume/Resume1.pdf") llm = input.llm() data = llm.invoke(input.input_data(text)) print(data)