+
    QV-j>	  ã                   óZ   € R t ^ RIt^ RIt^ RIHt ^RIHt ]'       d   ^RIHt R R lt	R# )zz
Helpful utility functions and classes in relation to exploring API endpoints
with the aim for a user-friendly interface.
N)ÚTYPE_CHECKING)ÚModelCardData)Ú	ModelInfoc                ó@   € V ^8„  d   QhRRR\         R\         R\        /# )é   Ú
model_infor   Úminimum_thresholdÚmaximum_thresholdÚreturn)ÚfloatÚbool)Úformats   "Úw/Volumes/fast/ai/experiments/ui-tars-smoke/.venv/lib/python3.14/site-packages/huggingface_hub/utils/endpoint_helpers.pyÚ__annotate__r      s0   € ÷ &Dñ &D¨kð &DÌeð &DÔhmð &DÔrvñ &Dó    c                óÚ  € Vf   Vf   \        R4      hVf   RpVf   \        P                  p\        V RR4      pVe   \	        V\
        \        34      '       g   R# VP                  RR4      p\	        V\
        4      '       d
   VR,          pV'       g   R# \        P                  ! R\        V4      4      pVf   R# \        VP                  ^ 4      4      pYu;8*  ;'       d    V8*  # u # )	aµ  Checks if a model's emission is within a given threshold.

Args:
    model_info (`ModelInfo`):
        A model info object containing the model's emission information.
    minimum_threshold (`float`):
        A minimum carbon threshold to filter by, such as 1.
    maximum_threshold (`float`):
        A maximum carbon threshold to filter by, such as 10.

Returns:
    `bool`: Whether the model's emission is within the given threshold.
NzFBoth `minimum_threshold` and `maximum_threshold` cannot both be `None`Ú	card_dataFÚco2_eq_emissionsÚ	emissionsz\d+\.\d+|\d+éÿÿÿÿ)Ú
ValueErrorÚmathÚinfÚgetattrÚ
isinstanceÚdictr   ÚgetÚreÚsearchÚstrr   Úgroup)r   r   r	   r   ÚemissionÚmatchedÚemission_values   &&&    r   Ú_is_emission_within_thresholdr$      sÙ   € ð Ò Ð%6Ò%>ÜÐaÓbÐbØÒ ØÐØÒ Ü ŸH™HÐä˜
 K°Ó6€IØÒ¤
¨9´t¼]Ð6K× LÒ LÙð �}‰}Ð/°Ó6€HÜ�(œD×!Ò!Ø˜KÕ(ˆßÙô �iŠi˜¬¨X«Ó7€GØ‚Ùä˜7Ÿ=™=¨Ó+Ó,€NØ×CÔCÐ2CÑCÐCÑCÐCr   )
Ú__doc__r   r   Útypingr   Úrepocard_datar   Úhf_apir   r$   © r   r   Ú<module>r*      s&   ðñó
 Û 	Ý  å )÷ Ý"÷&Dr   