keshva commited on
Commit
b6c6c0e
·
1 Parent(s): d51bfff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -6,6 +6,10 @@ import pytesseract
6
  from PIL import Image
7
  import spacy
8
  import json
 
 
 
 
9
 
10
  from transformers import pipeline
11
  from PyPDF2 import PdfReader
 
6
  from PIL import Image
7
  import spacy
8
  import json
9
+ import subprocess
10
+
11
+ update_process = subprocess.run(['sudo', 'apt', 'update'], capture_output=True, text=True)
12
+ install_process = subprocess.run(['sudo', 'apt', 'install', 'tesseract-ocr'], capture_output=True, text=True)
13
 
14
  from transformers import pipeline
15
  from PyPDF2 import PdfReader