sarim commited on
Commit
619d0fa
·
1 Parent(s): 6361aa1

update streamlit

Browse files
Files changed (2) hide show
  1. app.py +5 -1
  2. requirements.txt +1 -0
app.py CHANGED
@@ -1,4 +1,5 @@
1
  from transformers import pipeline
 
2
 
3
  nlp = pipeline(
4
  "document-question-answering",
@@ -8,4 +9,7 @@ nlp = pipeline(
8
  nlp(
9
  "https://templates.invoicehome.com/invoice-template-us-neat-750px.png",
10
  "What is the invoice number?"
11
- )
 
 
 
 
1
  from transformers import pipeline
2
+ import streamlit as st
3
 
4
  nlp = pipeline(
5
  "document-question-answering",
 
9
  nlp(
10
  "https://templates.invoicehome.com/invoice-template-us-neat-750px.png",
11
  "What is the invoice number?"
12
+ )
13
+
14
+ st.title("Hello Document OCR")
15
+ st.write("Vat amount")
requirements.txt CHANGED
@@ -1,3 +1,4 @@
 
1
  transformers
2
  Pillow
3
  pytesseract
 
1
+ streamlit==0.84.1
2
  transformers
3
  Pillow
4
  pytesseract