
    qi                     <   d dl Z d dlZd dlmZmZ d dlZd dlmZmZ d dl	m
Z
mZmZ d dlmZ d dlmZ d dlmZ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mZ d dlm Z m!Z!m"Z" d dl#m$Z$ d dl%m&Z& d dl'm(Z(m)Z) d dl*m+Z+ d dl,m-Z- d dl.m/Z/ d dl0m1Z1 d dl2m3Z3 d dl4m5Z5 d dl6m7Z7m8Z8 d dl9m:Z:m;Z; d dl<m=Z=m>Z> d dl?m@Z@ d dlAmBZB d dlCmDZDmEZE  ed ee e!            ZFd eGd!dfd"ZHeFj                  d#$      	 dAd%eeeG    ej                  d&eHd#d#'      f   d!dfd(       ZK eFj                         e        eFj                  e)      e        eFj                  e:)      e;        eFj                  e=)      e>        eFj                  d*+      e7        eFj                  d*+      e8        eFj                  d#,      e(        eFj                  d#,      e)       eFj                  ed-.       eFj                  ed/.       eFj                  ed0.       eFj                  ed1.       eFj                  ed2.       eFj                  ed3.       eFj                  e&d4.       eFj                  e+d5.       eFj                  e-d6.       eFj                  e1d7.       eFj                  e/d8d#9       eFj                  e3d:.       eFj                  e5d;.       eFj                  e@d<.       eFj                  e$d=.       eFj                  e"d>.       d? ZNeOd@k(  r eN        yy)B    N)	AnnotatedOptional)__version__	constants)check_cli_updatefallback_typer_group_factorytyper_factory)format_known_exception)auth_cli)buckets_clisync)	cache_cli)collections_cli)datasets_cli)discussions_cli)DOWNLOAD_EXAMPLESdownload)%_dispatch_unknown_top_level_extension#_list_installed_extensions_for_helpextensions_cli)ie_cli)jobs_cli)lfs_enable_largefileslfs_multipart_upload)
models_cli)
papers_cli)repo_files_cli)	repos_cli)
skills_cli)
spaces_cli)envversion)UPLOAD_EXAMPLESupload)UPLOAD_LARGE_FOLDER_EXAMPLESupload_large_folder)webhooks_cli)CLIError)ANSIloggingzHugging Face Hub CLI)extra_commands_provider)helpclsvaluereturnc                 N    | r#t        t               t        j                         y N)printr   typerExit)r.   s    H/opt/pipecat/venv/lib/python3.12/site-packages/huggingface_hub/cli/hf.py_version_callbackr6   >   s    kjjl     T)invoke_without_commandr"   z	--version)callbackis_eagerhiddenc                      y r1    )r"   s    r5   app_callbackr>   D   s     	r7   )examplesr,   )topic)r;   auth)namebucketscachecollectionsdatasetsdiscussionsjobsmodelspaperszrepos | repoz
repo-files)rB   r;   skillsspaceswebhooks	endpointszextensions | extc                     t         j                  st        j                          t	        d       	 t                y # t        $ r} t        d|  t        j                         t         j                  rt        j                          nt        t        j                  d             t        j                  d       Y d } ~ y d } ~ wt        $ r} t!        |       }|rvt        d| t        j                         t         j                  rt        j                          nt        t        j                  d             t        j                  d        d } ~ ww xY w)Nhuggingface_hubzError: )filez:Set HF_DEBUG=1 as environment variable for full traceback.   )r   HF_DEBUGr*   set_verbosity_infor   appr(   r2   sysstderr	traceback	print_excr)   grayexit	Exceptionr
   )emessages     r5   mainr_   l   s    ""$&' sm#**-!$))XYZ 	(+GG9%CJJ7!!##%dii \]^HHQK	s#   
< 	EA6C  EBEE__main__r1   )PrV   rX   typingr   r   r3   rP   r   r   huggingface_hub.cli._cli_utilsr   r   r	   huggingface_hub.cli._errorsr
   huggingface_hub.cli.authr   huggingface_hub.cli.bucketsr   r   huggingface_hub.cli.cacher   huggingface_hub.cli.collectionsr   huggingface_hub.cli.datasetsr   huggingface_hub.cli.discussionsr   huggingface_hub.cli.downloadr   r   huggingface_hub.cli.extensionsr   r   r   'huggingface_hub.cli.inference_endpointsr   huggingface_hub.cli.jobsr   huggingface_hub.cli.lfsr   r   huggingface_hub.cli.modelsr   huggingface_hub.cli.papersr   huggingface_hub.cli.repo_filesr   huggingface_hub.cli.reposr   huggingface_hub.cli.skillsr   huggingface_hub.cli.spacesr    huggingface_hub.cli.systemr!   r"   huggingface_hub.cli.uploadr#   r$   'huggingface_hub.cli.upload_large_folderr%   r&   huggingface_hub.cli.webhooksr'   huggingface_hub.errorsr(   huggingface_hub.utilsr)   r*   rU   boolr6   r9   Optionr>   command	add_typerr_   __name__r=   r7   r5   <module>r      s     &  2 h h > - 9 / ; 5 ; D 
 ; - O 1 1 9 / 1 1 3 > e 5 + / 	$- C	T d  T* 		[;LW[dhii	 
		 +	 d  '& ' 1 %_ %f - 21 23F G & #  & ' " 4 . / 4 - . hV $ k	 * ig & oM 2 l , oM 2 hV $ jx ( jx ( in - n< = jx ( jx ( l , f; ' n#5 64 zF r7   