o
    èôjõ  ã                   @   s"   d dl Z d dlmZ ddd„ZdS )é    N)Úhf_hub_downloadúpytorch_model.binc                 C   s>   t jddd� t| |dd�}|d u r|S t| |dd�}||fS )Nz./checkpointsT)Úexist_ok)Úrepo_idÚfilenameZ	cache_dir)ÚosÚmakedirsr   )r   Zmodel_filenameÚconfig_filenameÚ
model_pathZconfig_path© r   ú</var/www/html/academy/tools/voices/clone/seed-vc/hf_utils.pyÚload_custom_model_from_hf   s   r   )r   N)r   Zhuggingface_hubr   r   r   r   r   r   Ú<module>   s    