refactor: no need to inherit in python3 clean the code (#5659)

### What problem does this PR solve?

As title

### Type of change


- [x] Refactoring

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
yihong
2025-03-05 18:03:53 +08:00
committed by GitHub
parent a64f4539e7
commit 4326873af6
13 changed files with 31 additions and 31 deletions

View File

@ -28,7 +28,7 @@ from .operators import preprocess
from . import operators
from .ocr import load_model
class Recognizer(object):
class Recognizer:
def __init__(self, label_list, task_name, model_dir=None):
"""
If you have trouble downloading HuggingFace models, -_^ this might help!!