Soumen commited on
Commit
6e58c44
1 Parent(s): 54f2dfa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -17,6 +17,9 @@ Purpose
17
  To perform basic and useful NLP task with Streamlit, Spacy, Textblob and Gensim
18
  """
19
  # Core Pkgs
 
 
 
20
  import streamlit as st
21
  import os
22
  import torch
@@ -30,7 +33,7 @@ import requests
30
  import cv2
31
  import numpy as np
32
  import pytesseract
33
- pytesseract.pytesseract.tesseract_cmd = r"C:\Program Files\Tesseract-OCR\tesseract.exe"
34
  from PIL import Image
35
  # Function to Analyse Tokens and Lemma
36
  tokenizer = AutoTokenizer.from_pretrained('t5-base')
 
17
  To perform basic and useful NLP task with Streamlit, Spacy, Textblob and Gensim
18
  """
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')