o
    H!i                     @   s,   d dl mZmZ ddededefddZdS )	   ConfigPaddleModelN
model_nameconfig_pathreturnc                 C   s   t | |}t|d}||fS )an  build Config and PaddleModel

    Args:
        model_name (str): model name
        device (str): device, such as gpu, cpu, npu, xpu, mlu, gcu
        config_path (str, optional): path to the PaddleX config yaml file.
            Defaults to None, i.e. using the default config file.

    Returns:
        tuple(Config, PaddleModel): the Config and PaddleModel
    )configr   )r   r   r   model r
   l/home/app/PaddleOCR-VL-test/.venv_paddleocr/lib/python3.10/site-packages/paddlex/modules/base/build_model.pybuild_model   s   

r   )N)Zrepo_apis.baser   r   strtupler   r
   r
   r
   r   <module>   s   