+
    Pj6,                         R t ^ RIt^ RIt^ RIt^ RIHt ^ RIt^ RIHtH	t	 ^ RI
Ht ^ RIHtHt ^ RIHt ^RIHtHtHtHtHtHtHt ^RIHtHt ^R	IHt ]	P<                  ! ]4      t . ROt!RR
 R llt"R R lt#R# )z7Contains command to upload a repo or file with the CLI.N)	Annotated)	constantslogging)CommitScheduler)CLIErrorRevisionNotFoundError)parse_hf_uri)
PrivateOpt	RepoIdArgRepoTypeRepoTypeOptionalOptRevisionOptTokenOpt
get_hf_api)ArgumentOption)outc                   V ^8  d   QhR\         R\        \        R,          \        RR7      3,          R\        \        R,          \        RR7      3,          R\        R	\
        R
\        R\        \        \        ,          R,          \        RR7      3,          R\        \        \        ,          R,          \        RR7      3,          R\        \        \        ,          R,          \        RR7      3,          R\        \        R,          \        RR7      3,          R\        \        R,          \        RR7      3,          R\        \        \        RR7      3,          R\        \        R,          \        RR7      3,          R\        RR/# )   repo_id
local_pathNzkLocal path to the file or folder to upload. Wildcard patterns are supported. Defaults to current directory.)helppath_in_repoz\Path of the file or folder in the repo. Defaults to the relative path of the file or folder.	repo_typerevisionprivateincludez'Glob patterns to match files to upload.excludez.Glob patterns to exclude from files to upload.deletezDGlob patterns for file to be deleted from the repo while committing.commit_messagez9The summary / title / first line of the generated commit.commit_descriptionz(The description of the generated commit.	create_prz0Whether to upload content as a new Pull Request.everyzNIf set, a background job is scheduled to create commits every `every` minutes.tokenreturn)r
   r   strr   r   r   r	   listr   boolfloatr   )formats   "s/Users/ahmed/devFolder/Ultron/claude-voice/gateway/.venv/lib/python3.14/site-packages/huggingface_hub/cli/upload.py__annotate__r+   5   s    G' G'G'd
~	
	G' d
o	
	G' #G' G'  !G'" S	D:	
	#G'. S	DA	
	/G': S	DW	
	;G'F d
L	
	GG'R "d
;	
	SG'^ C	
	_G'j a	
	kG'v wG'x 
yG'    c                  a aaaaa	a
aaaaaaa Se    S^ 8:  d   \         P                  ! RRR7      hS P                  \        P                  4      '       d   Ve   \        RS  R24      hSe   \        RS  R24      h\        S 4      pVP                  '       d   \        R4      hVP                  VP                  VP                  uo ooVP                  '       d-   Ve   \        R	VP                   R
V R24      hVP                  pM$T;'       g    \        P                  P                  o\        VR7      o\!        S WVR7      w  oooR VV
V	VVVVVV VVVVV3R llpV! 4       p\"        P$                  ! RVR7       R# )zLUpload a file or a folder to the Hub. Recommended for single-commit uploads.Nz --every must be a positive valuer"   )
param_hintz3'--repo-type' cannot be used with an 'hf://' URI ('z').z2'--revision' cannot be used with an 'hf://' URI ('z@Buckets are not supported by `hf upload`. Use `hf sync` instead.z)Cannot combine a path in the hf:// URI ('z&') with the `path_in_repo` argument (')r#   )r   r   r   r   c                $    V ^8  d   QhR\         /# )r   r$   )r%   )r)   s   "r*   r+   upload.<locals>.__annotate__   s     c
 c
 c
r,   c                  .  < \         P                  P                  S4      '       d   Se=   \        S4      ^ 8  d-   \	        S\
        4      '       d   \        P                  ! R4       Se'   \        S4      ^ 8  d   \        P                  ! R4       S
e'   \        S
4      ^ 8  d   \        P                  ! R4       Se   \         P                  P                  S4      '       dN   \         P                  P                  S4      p SP                  S4      '       d   SR \        S4      )  MSpS.p. pM2Sp SpSpSpS
e'   \        S
4      ^ 8  d   \        P                  ! R4       \        V SSSVVVSSSR7
      p\        P                  ! RS RVP                   R24         \        P                  ! ^d4       K  \         P                  P                  S4      '       g5   \         P                  P%                  S4      '       g   \'        RS R24      hSP)                  SSR	SSR8X  d   RMR R7      P                  pSe   S	'       g    SP+                  VSSR7       \         P                  P                  S4      '       d   SP5                  SSVSSSSS	R7      # SP7                  SSVSSSSS	SSS
R7      #   \          d    TP#                  4         R
# i ; i  \,         d2    \.        P1                  RS R24       SP3                  TSSR	R7        Li ; i)Nz3Ignoring --include since a single file is uploaded.z3Ignoring --exclude since a single file is uploaded.z2Ignoring --delete since a single file is uploaded.z8Ignoring --delete when uploading with scheduled commits.)
folder_pathr   r   r   allow_patternsignore_patternsr   r   r"   hf_apizScheduling commits every z minutes to .TzStopped scheduled commits.zNo such file or directory: 'z'.spacegradio)r   r   exist_okr   	space_sdk)r   r   r   zBranch 'z' not found. Creating it...)r   r   branchr9   )path_or_fileobjr   r   r   r   r   r    r!   )r2   r   r   r   r   r   r    r!   r3   r4   delete_patterns)ospathisfilelen
isinstancer&   warningswarndirnameendswithr   r   textr   timesleepKeyboardInterruptstopisdirFileNotFoundErrorcreate_repo	repo_infor   loggerinfocreate_branchupload_fileupload_folder)r2   pir3   r4   	schedulercreatedapir    r   r!   r   r"   r   r   r   repo_type_strresolved_includeresolved_local_pathresolved_path_in_repor   s         r*   
run_uploadupload.<locals>.run_upload   s   77>>-..+4D0E0IjYikoNpNpST"s7|a'7ST!c&kAoRS  ww~~122 ggoo.AB -556IJJ **ES1D-E,EF. 
 #6!6"$1*!1")%#f+/MM"\]'''!- /I HH0|IDUDUCVVWXY4JJsO ww~~122277==I\;];]#&BCVBWWY$Z[[//#"/7":h " 
 ' 	 	lgQYZ 77>>-..?? 32'!-#5# # 	 	   +.#)1+#" ! 
 	
Q % 4 34* ) lhxj0KLM!!']S[fj!kls$    J6 K 6KK9LLUploaded)url)clickBadParameter
startswithr   HF_PROTOCOLr   r   	is_bucketidtyper   r   r   modelvaluer   _resolve_upload_pathsr   result)r   r   r   r   r   r   r   r   r   r   r    r!   r"   r#   urir]   rk   rX   rY   rZ   r[   r\   s   f&&&ff&ffffff&   @@@@@r*   uploadrm   5   s|   ~ UaZ  !CPWXX )//00 PQXPYY\]^^OPWyX[\]]7#===]^^+.66388S\\('?@P@P?QQw  yE  xF  FI  J  ++L"44hnn;;
5
!C DYJSZD@.0@c
 c
 c
J \FJJzv&r,   c                    V ^8  d   QhR\         R\         R,          R\         R,          R\        \         ,          R,          R\        \         \         \        \         ,          R,          3,          /# )r   r   r   Nr   r   r$   )r%   r&   tuple)r)   s   "r*   r+   r+      s]     6 66!$t6;>:6PTUXPY\`P`6
3T#Y%%&6r,   c                   a V P                  R 4      R	,          pTpSel   \        ;QJ d    V3R lR
 4       F  '       g   K   RM	  RM! V3R lR
 4       4      '       d,   Ve   \        R4      hVe   VR8w  d   \        R4      hRSR.3# Sf*   \        P                  P                  V4      '       d   WDV3# Sf+   \        P                  P                  V4      '       d   VRV3# Sf   \        RV R24      hVfH   \        P                  P                  S4      '       d#   S\        P                  P                  S4      V3# Vf   SRV3# SW%3# )/c              3   ,   <"   T F	  qS9   x  K  	  R # 5i)N ).0cr   s   & r*   	<genexpr>(_resolve_upload_paths.<locals>.<genexpr>  s     %O!:os   TFz9Cannot set --include when local_path contains a wildcard.r6   z<Cannot set path_in_repo when local_path contains a wildcard.'zB' is not a local file or folder. Please set local_path explicitly.)*?[)splitany
ValueErrorr>   r?   r@   rL   basename)r   r   r   r   	repo_namerZ   s   $d$$  r*   rj   rj      s7    c"2&I##%O%O###%O%O"O"OXYY#(;[\\J%%bggnnY77%555bggmmI66#///1YK'ijkkz : :277++J79III3 000|55r,   )zhf upload my-cool-model . .z:hf upload Wauplin/my-cool-model ./models/model.safetensorszChf upload Wauplin/my-cool-dataset ./data /train --repo-type=datasetzrhf upload Wauplin/my-cool-model ./models . --commit-message="Epoch 34/50" --commit-description="Val accuracy: 68%"z?hf upload bigcode/the-stack . . --repo-type dataset --create-pr)NNNNNNNNNNFNN)$__doc__r>   rH   rC   typingr   ra   huggingface_hubr   r   !huggingface_hub._commit_schedulerr   huggingface_hub.errorsr   r   huggingface_hub.utilsr   
_cli_utilsr	   r
   r   r   r   r   r   
_frameworkr   r   _outputr   
get_logger__name__rP   UPLOAD_EXAMPLESrm   rj   rs   r,   r*   <module>r      sa    > 	     . = B .   )  
		H	%G'T6r,   