remove dependency (#1536)

### What problem does this PR solve?

#702 
### Type of change
- [x] Refactoring
This commit is contained in:
Kevin Hu
2024-07-16 16:30:17 +08:00
committed by GitHub
parent 6a5e1d597c
commit 99adeabc85
2 changed files with 1 additions and 11 deletions

View File

@ -19,7 +19,6 @@ from huggingface_hub import snapshot_download
from api.utils.file_utils import get_project_base_directory
from .operators import *
from rag.settings import cron_logger
class Recognizer(object):
@ -340,7 +339,6 @@ class Recognizer(object):
if score < thr:
continue
if clsid >= len(self.label_list):
cron_logger.warning(f"bad category id")
continue
bb.append({
"type": self.label_list[clsid].lower(),