Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files- .gitattributes +4 -0
- app.py +4 -1
- en_PP-OCRv3_det_infer/inference.pdiparams +3 -0
- en_PP-OCRv3_det_infer/inference.pdiparams.info +0 -0
- en_PP-OCRv3_det_infer/inference.pdmodel +3 -0
- en_PP-OCRv3_rec_infer/inference.pdiparams +3 -0
- en_PP-OCRv3_rec_infer/inference.pdiparams.info +0 -0
- en_PP-OCRv3_rec_infer/inference.pdmodel +3 -0
.gitattributes
CHANGED
@@ -33,3 +33,7 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
en_PP-OCRv3_det_infer/inference.pdiparams filter=lfs diff=lfs merge=lfs -text
|
37 |
+
en_PP-OCRv3_det_infer/inference.pdmodel filter=lfs diff=lfs merge=lfs -text
|
38 |
+
en_PP-OCRv3_rec_infer/inference.pdiparams filter=lfs diff=lfs merge=lfs -text
|
39 |
+
en_PP-OCRv3_rec_infer/inference.pdmodel filter=lfs diff=lfs merge=lfs -text
|
app.py
CHANGED
@@ -5,8 +5,11 @@ from PIL import Image
|
|
5 |
from io import BytesIO
|
6 |
import json
|
7 |
import gradio as gr
|
|
|
8 |
|
9 |
-
ocr = PaddleOCR(use_angle_cls=True, lang='en', use_pdserving=False, cls_batch_num=8, det_batch_num=8, rec_batch_num=8)
|
|
|
|
|
10 |
|
11 |
def index(url):
|
12 |
response = requests.get(url)
|
|
|
5 |
from io import BytesIO
|
6 |
import json
|
7 |
import gradio as gr
|
8 |
+
import paddleocr
|
9 |
|
10 |
+
# ocr = PaddleOCR(use_angle_cls=True, lang='en', use_pdserving=False, cls_batch_num=8, det_batch_num=8, rec_batch_num=8)
|
11 |
+
|
12 |
+
ocr = PaddleOCR(use_angle_cls=True, lang='en')
|
13 |
|
14 |
def index(url):
|
15 |
response = requests.get(url)
|
en_PP-OCRv3_det_infer/inference.pdiparams
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:83676ec730627ab4502f401410a4b6a3ce1c0bb98fa249b71db055b6bddae051
|
3 |
+
size 2377917
|
en_PP-OCRv3_det_infer/inference.pdiparams.info
ADDED
Binary file (26.4 kB). View file
|
|
en_PP-OCRv3_det_infer/inference.pdmodel
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c4bfb1b05d9d1d5a760801eaf6d20180ef7e47bcc675fb17d1f3a89da5fef427
|
3 |
+
size 1590133
|
en_PP-OCRv3_rec_infer/inference.pdiparams
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2cea2de604d8a75fd9151b54ea2dd027659fb8cb777cde377224581110dbff13
|
3 |
+
size 8916816
|
en_PP-OCRv3_rec_infer/inference.pdiparams.info
ADDED
Binary file (22 kB). View file
|
|
en_PP-OCRv3_rec_infer/inference.pdmodel
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f0288362f754e815030929477f7b1f96fe2e913e197537288a01bd43f768d0ab
|
3 |
+
size 1020915
|