Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ To perform basic and useful NLP task with Streamlit, Spacy, Textblob and Gensim
|
|
19 |
# Core Pkgs
|
20 |
import os
|
21 |
os.system('sudo apt-get install tesseract-ocr')
|
22 |
-
|
23 |
import streamlit as st
|
24 |
import os
|
25 |
import torch
|
@@ -33,7 +33,7 @@ import requests
|
|
33 |
import cv2
|
34 |
import numpy as np
|
35 |
import pytesseract
|
36 |
-
pytesseract.pytesseract.tesseract_cmd = r"./Tesseract-OCR/tesseract.exe"
|
37 |
from PIL import Image
|
38 |
# Function to Analyse Tokens and Lemma
|
39 |
tokenizer = AutoTokenizer.from_pretrained('t5-base')
|
|
|
19 |
# Core Pkgs
|
20 |
import os
|
21 |
os.system('sudo apt-get install tesseract-ocr')
|
22 |
+
os.system('pip install -q pytesseract')
|
23 |
import streamlit as st
|
24 |
import os
|
25 |
import torch
|
|
|
33 |
import cv2
|
34 |
import numpy as np
|
35 |
import pytesseract
|
36 |
+
#pytesseract.pytesseract.tesseract_cmd = r"./Tesseract-OCR/tesseract.exe"
|
37 |
from PIL import Image
|
38 |
# Function to Analyse Tokens and Lemma
|
39 |
tokenizer = AutoTokenizer.from_pretrained('t5-base')
|