+
    –°³jš.  ã                   óö   € 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   "Ú[/home/luca/screen-checking/.venv/lib/python3.14/site-packages/huggingface_hub/cli/upload.pyÚ__annotate__r+   5   sÂ  € ÷ N'ñ N'ÜðN'äÜˆd�
ÜØ~ô	
ð	õðN'ô Üˆd�
ÜØoô	
ð	õðN'ô #ðN'ô ðN'ô  ð!N'ô" ÜŒS�	�DÕÜØ:ô	
ð	õð#N'ô. ÜŒS�	�DÕÜØAô	
ð	õð/N'ô: ÜŒS�	�DÕÜØWô	
ð	õð;N'ôF Üˆd�
ÜØLô	
ð	õðGN'ôR "Üˆd�
ÜØ;ô	
ð	õðSN'ô^ ÜÜØCô	
ð	õð_N'ôj Ü��ÜØaô	
ð	õðkN'ôv ðwN'ðx 
ñyN'ó    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   € ÷ j
ñ j
œñ j
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eE   \         P                  P                  S4      '       d˜   \         P                  P                  S4      p \         P                  P                  S4      pSP                  R4      w  r#pVRRV39  d6   \        P                  ! RV'       d
   VR,           MRV,            RS R	24       V.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	P9                  SSVSSSS
SR7      # S	P;                  SSVSSSS
SSSSR7      #   \$         d    TP'                  4         R# i ; i  \0         d2    \2        P5                  RS R24       S	P7                  TSSRR7        L·i ; 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.Ú/Ú Ú.zMScheduled uploads keep the local file name, so the file will be uploaded as 'z' rather than 'z='. Rename the local file to upload it under a different name.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   Úbranchr;   )Úpath_or_fileobjr   r   r   r   r   r    r!   )r5   r   r   r   r   r   r    r!   r6   r7   Údelete_patterns)ÚosÚpathÚisfileÚlenÚ
isinstancer&   ÚwarningsÚwarnÚdirnameÚbasenameÚ
rpartitionr   Úwarningr   Útextr   ÚtimeÚsleepÚKeyboardInterruptÚstopÚisdirÚFileNotFoundErrorÚcreate_repoÚ	repo_infor   ÚloggerÚinfoÚcreate_branchÚupload_fileÚupload_folder)r5   ÚfilenameÚpiÚ_Údest_filenamer6   r7   Ú	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=  ø€ Ü�7‰7�>‰>Ð-×.Ò.ØÒ+´Ð4DÓ0EÈÔ0IÌjÐYiÔko×NpÒNpÜ—’ÐSÔTØÒ"¤s¨7£|°aÔ'7Ü—’ÐSÔTØÒ!¤c¨&£k°A¤oÜ—’ÐRÔSð Óô �w‰w�~‰~Ð1×2Ò2ô
 !Ÿg™gŸo™oÐ.AÓB�ÜŸ7™7×+Ñ+Ð,?Ó@�Ø'<×'GÑ'GÈÓ'LÑ$��}à ¨¨S°(Ð(;Ô;Ü—K’Kðß*,˜b 3žh°"¸Õ@ÐAÀÐQfÐPgð hVðVôð
 #+ �Ø"$‘à1�Ø*�Ø!1�Ø")�ØÒ%¬#¨f«+¸¬/Ü—M’MÐ"\Ô]ä'Ø'ØØ'Ø!Ø-Ø /ØØØØôˆIô �HŠHÐ0°°°|ÀI×DUÑDUÐCVÐVWÐXÔYð4ØÜ—J’J˜s–Oô �w‰w�~‰~Ð1×2Ò2¼2¿7¹7¿=¹=ÐI\×;]Ò;]Ü#Ð&BÐCVÐBWÐWYÐ$ZÓ[Ð[Ø—/‘/ØØ#ØØØ"/°7Ô":‘hÀð "ó 
÷ ‰'ð 	ð Ò¯	ðlØ—‘ g¸ÐQY�ÔZô �7‰7�>‰>Ð-×.Ò.Ø—?‘?Ø 3Ø2ØØ'Ø!Ø-Ø#5Ø#ð #ó 	ð 	ð × Ñ Ø+Ø.ØØ#ØØ)Ø1ØØ+Ø#Ø"ð !ó 
ð 	
øôQ %ô 4Ø—‘Ô Ú3ð4ûô* )ô lÜ—‘˜h x jÐ0KÐLÔMØ×!Ñ!¨'¸]ÐS[ÐfjÐ!Ökðlús$   Ç+L ÊL# ÌL ÌL Ì#9MÍMÚ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#   Úurird   rr   r_   r`   ra   rb   rc   s   f&&&ff&ffffff&   @@@@@r*   Úuploadrt   5   s|  ÿý€ ð~ Ò˜U aœZÜ× Ò Ð!CÐPWÔXÐXð ×Ñœ)×/Ñ/×0Ò0ØÒ ÜÐPÐQXÐPYÐY\Ð]Ó^Ð^ØÒÜÐOÐPWÈyÐX[Ð\Ó]Ð]Ü˜7Ó#ˆØ�=�=ˆ=ÜÐ]Ó^Ð^Ø+.¯6©6°3·8±8¸S¿\¹\Ð(ˆ� Ø××ÐØÒ'ÜØ?À×@PÑ@PÐ?QÐQwð  yEð  xFð  FIð  Jóð ð ×+Ñ+ˆLøà"×4Ð4¤h§n¡n×;Ñ;ˆä
˜5Ô
!€Cô DYØ JÐSZôDÑ@ÐÐ.Ð0@÷j
÷ j
õ j
ñX ‹\€FÜ‡J‚Jˆz˜v×&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Ü;>À½:ð6ÜPTÔUXÕPYÐ\`Õ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RS.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# )r2   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.r4   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@   rA   rB   rP   rH   )r   r   r   r   Ú	repo_namera   s   $d$$  r*   rq   rq     s7  ø€ ð —‘˜cÓ" 2Õ&€IØÐàÒ§#£#Ô%O¹Ó%O§#§#¢#Ô%O¹Ó%O×"OÒ"OØÒÜÐXÓYÐYØÒ#¨¸Ô(;ÜÐ[Ó\Ð\Ø�C˜*˜Ð%Ð%àÒœbŸg™gŸn™n¨Y×7Ò7ØÐ%5Ð5Ð5ØÒœbŸg™gŸm™m¨I×6Ò6Ø˜#Ð/Ð/Ð/ØÒÜ˜1˜Y˜KÐ'iÐjÓkÐkàÒ¤§¡§¡¨z× :Ò :Øœ2Ÿ7™7×+Ñ+¨JÓ7Ð9IÐ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@   rL   rE   Útypingr   rh   Ú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__rT   ÚUPLOAD_EXAMPLESrt   rq   ry   r,   r*   Ú<module>r“      sa   ðñ >ã 	Û Û Ý ã ç .Ý =ß BÝ .÷÷ ñ ÷ )Ý ð 
×	Ò	˜HÓ	%€ò€÷N'÷b6r,   