"""
Wrapper for LayoutLMv3 inference.
Takes a local PDF or image, runs OCR + model inference,
and returns structured extracted fields.
"""

import os

def run_inference(file_path: str) -> dict:
    """
    Placeholder: integrate your trained LayoutLMv3 inference logic here.
    Args:
        file_path: path to PDF/image
    Returns:
        dict of extracted fields
    """
    # TODO: replace with your inference.py logic
    return {
        "Transaction ID": "123456",
        "Titling State": "PA",
        "Process Date": "2025-08-15",
        "Sales Tax": "500.00",
    }
