o
    1j                     @   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 )ay  build Config and PaddleModel

    Args:
        model_name (str): model name
        device (str): device, such as gpu, cpu, npu, xpu, mlu, gcu, metax_gpu
        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
   a/var/www/html/Deteccion_Ine/venv/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   