Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
•
4e8b346
1
Parent(s):
5f7655f
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ os.system('pip install paddleocr')
|
|
4 |
from paddleocr import PaddleOCR, draw_ocr
|
5 |
from PIL import Image
|
6 |
import gradio as gr
|
7 |
-
ocr = PaddleOCR(use_angle_cls=True, lang='en')
|
8 |
|
9 |
def inference(img):
|
10 |
img_path = img.name
|
|
|
4 |
from paddleocr import PaddleOCR, draw_ocr
|
5 |
from PIL import Image
|
6 |
import gradio as gr
|
7 |
+
ocr = PaddleOCR(use_angle_cls=True, lang='en',use_gpu=False)
|
8 |
|
9 |
def inference(img):
|
10 |
img_path = img.name
|