
    5pj                        S r SSKrSSKrSSKJr  SSKrSSKJr  SSKJ	r	  SSK
JrJrJrJrJrJrJr  SSKJrJr  SS	KJr  \R.                  " \5      rS
S/r\R6                  SSSSSSSS4	S\S\\\" SS94   S\S\S\S\\\   S-  \" SS94   S\\\   S-  \" SS94   S\S\\S-  \" SS94   S\\\" SS94   S\\\" SS94   SS4S  jjr g)!z7Contains command to upload a large folder with the CLI.    N)	Annotated)logging)disable_progress_bars   )
PrivateOpt	RepoIdArgRepoTypeRepoTypeOptRevisionOptTokenOpt
get_hf_api)ArgumentOption)outz>hf upload-large-folder Wauplin/my-cool-model ./large_model_dirzNhf upload-large-folder Wauplin/my-cool-model ./large_model_dir --revision v1.0Frepo_id
local_pathz#Local path to the folder to upload.)help	repo_typerevisionprivateincludez'Glob patterns to match files to upload.excludez.Glob patterns to exclude from files to upload.tokennum_workersz:Number of workers to use to hash, upload and commit files.	no_reportz)Whether to disable regular status report.no_barsz!Whether to disable progress bars.returnc                    [         R                  R                  U5      (       d  [        R                  " SSS9eSU  SU SUR
                   3/nUb  UR                  SU S	35        U(       a  UR                  S
5        U=(       d    /  H  nUR                  SU S	35        M     U=(       d    /  H  nUR                  SU S	35        M     [        R                  " SSR                  U5       S35        U
(       a
  [        5         [        US9n[        R                  " 5          [        R                  " S[        5        UR!                  U UUR
                  UUUUUU	(       + S9	  SSS5        g! , (       d  f       g= f)zG[Deprecated] Upload a large folder to the Hub. Use `hf upload` instead.z+Large upload is only supported for folders.r   )
param_hintz
hf upload z 'z' --repo-type Nz--revision ''z	--privatez--include 'z--exclude 'z
================================================================================
`hf upload-large-folder` is DEPRECATED and will be removed in a future release.

Use `hf upload` instead:

     zQ
================================================================================)r   ignore)	r   folder_pathr   r   r   allow_patternsignore_patternsr   print_report)ospathisdirclickBadParametervalueappendr   warningjoinr   r   warningscatch_warningssimplefilterFutureWarningupload_large_folder)r   r   r   r   r   r   r   r   r   r   r   
equivalentpatternapis                 c/var/www/html/pdf-tiff/venv/lib/python3.13/site-packages/huggingface_hub/cli/upload_large_folder.pyr4   r4   /   sl   X 77==$$  !N[ghh wir*^IOOCTUVJL
!45+&=b=Ky23 !=b=Ky23 ! KK	 xx
#$ %[	[	 
5
!C		 	 	"h6"oo"##& 	  
	
 
#	"	"s   &AE11
E?)!__doc__r'   r0   typingr   r*   huggingface_hubr   huggingface_hub.utilsr   
_cli_utilsr   r   r	   r
   r   r   r   
_frameworkr   r   _outputr   
get_logger__name__loggerUPLOAD_LARGE_FOLDER_EXAMPLESmodelstrlistintboolr4        r8   <module>rK      s   > 	    # 7   )  
		H	% ET   &^^  	 	 	 	 	SV
V
6	
	V
 V
 V
 V
 S	D:	
	V
" S	DA	
	#V
. /V
0 d
M	
	1V
< <	
	=V
H 4	
	IV
T 
UV
rJ   