Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|