
    WiW                        d dl Z d dl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 d d	l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$ d dl%m&Z& d dl'm(Z(m)Z) d dl*m+Z+m,Z, d dl-m.Z.m/Z/ d dl0m1Z1 d dl2m3Z3m4Z4  ed      Z5 e5jm                  e      e        e5jm                  e+      e,        e5jm                  e.      e/        e5jm                  d      e(        e5jm                  d      e)        e5jm                  d      e        e5jm                  d      e       e5jo                  e
d        e5jo                  ed!        e5jo                  ed"        e5jo                  ed#        e5jo                  ed$        e5jo                  ed%        e5jo                  ed&        e5jo                  e d'        e5jo                  e"d(        e5jo                  e$d)        e5jo                  e&d*        e5jo                  ed+        d, Z8e9d-k(  r e8        yy).    N)	constants)check_cli_updatetyper_factory)format_known_exception)auth_cli)	cache_cli)collections_cli)datasets_cli)DOWNLOAD_EXAMPLESdownload)ie_cli)jobs_cli)lfs_enable_largefileslfs_multipart_upload)
models_cli)
papers_cli)repo_cli)repo_files_cli)
skills_cli)
spaces_cli)envversion)UPLOAD_EXAMPLESupload)UPLOAD_LARGE_FOLDER_EXAMPLESupload_large_folder)CLIError)ANSIloggingzHugging Face Hub CLI)help)examplesr    )topicT)hiddenauth)namecachecollectionsdatasetsjobsmodelspapersrepoz
repo-filesskillsspaces	endpointsc                     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   printsysstderr	traceback	print_excr   grayexit	Exceptionr   )emessages     b/home/sietch6/trending-topics-pipeline/venv/lib/python3.12/site-packages/huggingface_hub/cli/hf.pymainrB   G   s    ""$&' sm#**-!$))XYZ 	(+GG9%CJJ7!!##%dii \]^HHQK	s#   
< 	EA6C  EBEE__main__):r8   r:   r1   r   huggingface_hub.cli._cli_utilsr   r   huggingface_hub.cli._errorsr   huggingface_hub.cli.authr   huggingface_hub.cli.cacher   huggingface_hub.cli.collectionsr	   huggingface_hub.cli.datasetsr
   huggingface_hub.cli.downloadr   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.repor   huggingface_hub.cli.repo_filesr   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.errorsr   huggingface_hub.utilsr   r   r6   command	add_typerrB   __name__     rA   <module>r^      s     % J > - / ; 5 D : - O 1 1 - 9 1 1 3 > e + / /0 (& ' 1 %_ %f - 21 23F G & #  & ' " 4 . / 4 - . hV $ ig & oM 2 l , hV $ jx ( jx ( hV $ n< 0 jx ( jx ( f; '4 zF r]   