feat(agent): add learn action flow and grounding guards
This commit is contained in:
@@ -148,10 +148,16 @@ class TitleVerifier:
|
||||
try:
|
||||
import easyocr
|
||||
import numpy as np
|
||||
from core.llm.ocr_extractor import easyocr_gpu_enabled
|
||||
|
||||
if TitleVerifier._easyocr_reader is None:
|
||||
gpu = easyocr_gpu_enabled(default=False)
|
||||
TitleVerifier._easyocr_reader = easyocr.Reader(
|
||||
['fr', 'en'], gpu=True, verbose=False
|
||||
['fr', 'en'], gpu=gpu, verbose=False
|
||||
)
|
||||
logger.info(
|
||||
"TitleVerifier EasyOCR initialisé (fr+en, %s)",
|
||||
"GPU" if gpu else "CPU",
|
||||
)
|
||||
|
||||
def _easyocr_extract_text(img):
|
||||
|
||||
Reference in New Issue
Block a user