resume-extractor / main.py
nehulagrawal's picture
Update main.py
61f2e19 verified
raw
history blame contribute delete
293 Bytes
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'path/to/your/document/pdf')
llm = input.llm()
data = llm.invoke(input.input_data(text))
print(data)