llm-ready-data / app /utils /json_utils.py
light-infer-chat's picture
feat: add qr extractor
ebb9029
Raw
History Blame Contribute Delete
439 Bytes
from __future__ import annotations
import logging
from typing import Any, List, Optional
logger = logging.getLogger(__name__)
def extract_json_blocks(text: str) -> List[Any]:
from app.services.json_service import extract_json_from_content as _extract
return _extract(text)
def extract_single_json(text: str) -> Optional[Any]:
from app.services.json_service import extract_first_json as _extract
return _extract(text)