File size: 383 Bytes
98c9c9c
619d0fa
c7d0287
 
 
98c9c9c
 
 
 
 
 
 
 
 
619d0fa
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from transformers import pipeline
import streamlit as st
import os

print(os.popen(f'apt search tesseract').read())

nlp = pipeline(
    "document-question-answering",
    model="impira/layoutlm-document-qa",
)

nlp(
    "https://templates.invoicehome.com/invoice-template-us-neat-750px.png",
    "What is the invoice number?"
)

st.title("Hello Document OCR")
st.write("Vat amount")