o
    ZŽhé  ã                   @   sš   d dl Z d dlmZ d dlmZ d dlmZ d dlmZ d dl	m
Z
 d dlmZ d dlmZ d d	lmZ d d
lmZ dd„ Zdd„ ZedkrKeƒ  dS dS )é    N)ÚHfArgumentParser)ÚAddFastImageProcessorCommand)ÚAddNewModelLikeCommand)ÚChatCommand)ÚConvertCommand)ÚDownloadCommand)ÚEnvironmentCommand)Ú
RunCommand)ÚServeCommandc                   C   s   t  dt¡ tƒ  d S )Nz``transformers-cli` is deprecated in favour of `transformers` directly and will be removed in v5.)ÚwarningsÚwarnÚDeprecationWarningÚmain© r   r   úU/var/www/auris/lib/python3.10/site-packages/transformers/commands/transformers_cli.pyÚmain_cli   s
   þ
r   c                  C   s    t ddd} | jdd}t |¡ t |¡ t |¡ t |¡ t |¡ t |¡ t	 |¡ t
 |¡ |  ¡ }t|dƒsE|  ¡  tdƒ | |¡}| ¡  d S )NzTransformers CLI toolztransformers <command> [<args>])ÚprogÚusageztransformers command helpers)ÚhelpÚfuncé   )r   Úadd_subparsersr   Zregister_subcommandr   r   r   r	   r
   r   r   Ú
parse_argsÚhasattrÚ
print_helpÚexitr   Úrun)ÚparserZcommands_parserÚargsZservicer   r   r   r   $   s    









r   Ú__main__)r   Ztransformersr   Z.transformers.commands.add_fast_image_processorr   Z(transformers.commands.add_new_model_liker   Ztransformers.commands.chatr   Ztransformers.commands.convertr   Ztransformers.commands.downloadr   Ztransformers.commands.envr   Ztransformers.commands.runr	   Ztransformers.commands.servingr
   r   r   Ú__name__r   r   r   r   Ú<module>   s   
ÿ