Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,15 +2,15 @@ import os
|
|
| 2 |
|
| 3 |
os.system('chmod 777 /tmp')
|
| 4 |
os.system('apt-get update -y')
|
| 5 |
-
os.system('
|
| 6 |
-
os.system('
|
| 7 |
|
| 8 |
import gradio as gr
|
| 9 |
import cv2
|
| 10 |
import pytesseract
|
| 11 |
from fastapi import FastAPI
|
| 12 |
|
| 13 |
-
pytesseract.pytesseract.tesseract_cmd = r'./Tesseract-OCR/tesseract.exe'
|
| 14 |
|
| 15 |
|
| 16 |
|
|
|
|
| 2 |
|
| 3 |
os.system('chmod 777 /tmp')
|
| 4 |
os.system('apt-get update -y')
|
| 5 |
+
os.system('apt-get install tesseract-ocr -y')
|
| 6 |
+
os.system('apt-get install libtesseract-dev -y')
|
| 7 |
|
| 8 |
import gradio as gr
|
| 9 |
import cv2
|
| 10 |
import pytesseract
|
| 11 |
from fastapi import FastAPI
|
| 12 |
|
| 13 |
+
#pytesseract.pytesseract.tesseract_cmd = r'./Tesseract-OCR/tesseract.exe'
|
| 14 |
|
| 15 |
|
| 16 |
|