File size: 293 Bytes
d336dbd
 
 
 
 
 
61f2e19
d336dbd
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
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)