
    ^j                        d Z ddlZddlZddlmZ ddlZddlmZ ddlm	Z	 ddl
mZmZmZmZmZmZmZ ddlmZmZ dd	lmZ  ej.                  e      Zd
dgZej6                  ddddddddf	dedee ed      f   dedededeee   dz   ed      f   deee   dz   ed      f   dedeedz   ed      f   dee ed      f   dee ed      f   ddfd Z y)!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                    t         j                  j                  |      st        j                  dd      d|  d| d|j
                   g}||j                  d| d	       |r|j                  d
       |xs g D ]  }|j                  d| d	        |xs g D ]  }|j                  d| d	        t        j                  ddj                  |       d       |
r
t                t        |      }t        j                         5  t        j                  dt               |j!                  | ||j
                  ||||||	 	       ddd       y# 1 sw Y   yxY w)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                 r/var/www/ramen.bs-engineer-server.com/venv/lib/python3.12/site-packages/huggingface_hub/cli/upload_large_folder.pyr4   r4   /   sx   X 77==$  !N[ghh wir*^IOOCTUVJL
!45+&=b 4Ky234=b 4Ky234 KK	 xx
#$ %[	[	 
5
!C		 	 	" 
h6"oo"##& 	  
	

 
 
s   A E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   