o
    ºié  ã                   @   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   úc/home/ubuntu/veenaModal/venv/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   Úregister_subcommandr   r   r   r	   r
   r   r   Ú
parse_argsÚhasattrÚ
print_helpÚexitr   Úrun)ÚparserÚcommands_parserÚargsÚservicer   r   r   r   $   s    









r   Ú__main__)r   Útransformersr   Ú.transformers.commands.add_fast_image_processorr   Ú(transformers.commands.add_new_model_liker   Útransformers.commands.chatr   Útransformers.commands.convertr   Útransformers.commands.downloadr   Útransformers.commands.envr   Útransformers.commands.runr	   Útransformers.commands.servingr
   r   r   Ú__name__r   r   r   r   Ú<module>   s   
ÿ