Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ import numpy as np
|
|
40 |
import pytesseract
|
41 |
#pytesseract.pytesseract.tesseract_cmd = r"./Tesseract-OCR/tesseract.exe"
|
42 |
from PIL import Image
|
43 |
-
@st.
|
44 |
def text_analyzer(my_text):
|
45 |
nlp = spacy.load('en_core_web_sm')
|
46 |
docx = nlp(my_text)
|
@@ -49,7 +49,7 @@ def text_analyzer(my_text):
|
|
49 |
return allData
|
50 |
|
51 |
# Function For Extracting Entities
|
52 |
-
@st.
|
53 |
def entity_analyzer(my_text):
|
54 |
nlp = spacy.load('en_core_web_sm')
|
55 |
docx = nlp(my_text)
|
|
|
40 |
import pytesseract
|
41 |
#pytesseract.pytesseract.tesseract_cmd = r"./Tesseract-OCR/tesseract.exe"
|
42 |
from PIL import Image
|
43 |
+
@st.experimental_singleton
|
44 |
def text_analyzer(my_text):
|
45 |
nlp = spacy.load('en_core_web_sm')
|
46 |
docx = nlp(my_text)
|
|
|
49 |
return allData
|
50 |
|
51 |
# Function For Extracting Entities
|
52 |
+
@st.experimental_singleton
|
53 |
def entity_analyzer(my_text):
|
54 |
nlp = spacy.load('en_core_web_sm')
|
55 |
docx = nlp(my_text)
|