diff --git a/README.md b/README.md index d8f4138..4733a1f 100644 --- a/README.md +++ b/README.md @@ -31,13 +31,22 @@ nlp = pipeline( trust_remote_code=True, ) -nlp("https://templates.invoicehome.com/invoice-template-us-neat-750px.png", "What is the invoice number?") +nlp( + "https://templates.invoicehome.com/invoice-template-us-neat-750px.png", + "What is the invoice number?" +) # {'score': 0.9943977, 'answer': 'us-001', 'start': 15, 'end': 15} -nlp("https://miro.medium.com/max/787/1*iECQRIiOGTmEFLdWkVIH2g.jpeg", "What is the purchase amount?") +nlp( + "https://miro.medium.com/max/787/1*iECQRIiOGTmEFLdWkVIH2g.jpeg", + "What is the purchase amount?" +) # {'score': 0.9912159, 'answer': '$1,000,000,000', 'start': 97, 'end': 97} -nlp("https://www.accountingcoach.com/wp-content/uploads/2013/10/income-statement-example@2x.png", "What are the 2020 net sales?") +nlp( + "https://www.accountingcoach.com/wp-content/uploads/2013/10/income-statement-example@2x.png", + "What are the 2020 net sales?" +) # {'score': 0.59147286, 'answer': '$ 3,750', 'start': 19, 'end': 20} ```