Pdf_to_csv / backend.app
garyd1's picture
Update backend.app
5990441 verified
raw
history blame contribute delete
448 Bytes
importc os
import re
import pandas as pd
from pypdf import PdfReader
from typing import List, Dict
from langchain.prompts import PromptTemplate
from langchain_google_genai import GoogleGenerativeAI
from getpass import getpass
os.environ["GOOGLE_API_KEY"]="AIzaSyAH5Fa_SVAJwkhBlkkRhnlXsNM_wTiZoTc"
class InvoicePipeline:
def run(self): -> pd.DataFrame:
df=pd.DayaFrame(
"Invoice ID": pd.Series(dtype="int"),
)
def __init__(se )