Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,15 +1,11 @@
|
|
1 |
from paddleocr import PaddleOCR, draw_ocr
|
2 |
from matplotlib import pyplot as plt
|
3 |
import cv2
|
4 |
-
import us
|
5 |
import os
|
6 |
import gradio as gr
|
7 |
from typing import List
|
8 |
|
9 |
-
|
10 |
-
sst_lst = []
|
11 |
-
for i in lst:
|
12 |
-
sst_lst.append(i.upper())
|
13 |
def ocr_model(filepath: str, languages: List[str]=None):
|
14 |
pocr_model = PaddleOCR(use_angle_cls=True, lang='ch', use_gpu=False)
|
15 |
# img_path = os.path.join('.', 'static', 'img10.jpg')
|
|
|
1 |
from paddleocr import PaddleOCR, draw_ocr
|
2 |
from matplotlib import pyplot as plt
|
3 |
import cv2
|
|
|
4 |
import os
|
5 |
import gradio as gr
|
6 |
from typing import List
|
7 |
|
8 |
+
|
|
|
|
|
|
|
9 |
def ocr_model(filepath: str, languages: List[str]=None):
|
10 |
pocr_model = PaddleOCR(use_angle_cls=True, lang='ch', use_gpu=False)
|
11 |
# img_path = os.path.join('.', 'static', 'img10.jpg')
|