§
    «˜ºh^  ã                   óô   — d dl mZ d dlmZ d dlmZ d dlmZmZ d dlm	Z	  G d„ de
e¦  «        Z G d„ d	e
e¦  «        Z G d
„ de
e¦  «        Ze G d„ d¦  «        ¦   «         Ze G d„ d¦  «        ¦   «         ZdS )é    )Ú	dataclass)Údatetime)ÚEnum)ÚDictÚOptional)Úparse_datetimec                   ó:   — e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZdS )Ú
SpaceStagea  
    Enumeration of possible stage of a Space on the Hub.

    Value can be compared to a string:
    ```py
    assert SpaceStage.BUILDING == "BUILDING"
    ```

    Taken from https://github.com/huggingface/moon-landing/blob/main/server/repo_types/SpaceInfo.ts#L61 (private url).
    ÚNO_APP_FILEÚCONFIG_ERRORÚBUILDINGÚBUILD_ERRORÚRUNNINGÚRUNNING_BUILDINGÚRUNTIME_ERRORÚDELETINGÚSTOPPEDÚPAUSEDN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r   r   r   r   © ó    úb/var/www/html/services/rag-service/venv/lib/python3.11/site-packages/huggingface_hub/_space_api.pyr
   r
      sM   € € € € € ð	ð 	ð  €KØ!€LØ€HØ€KØ€GØ)ÐØ#€MØ€HØ€GØ€F€F€Fr   r
   c                   óZ   — e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZdZdZdZdZdZdZdZdZdS )ÚSpaceHardwarea=  
    Enumeration of hardwares available to run your Space on the Hub.

    Value can be compared to a string:
    ```py
    assert SpaceHardware.CPU_BASIC == "cpu-basic"
    ```

    Taken from https://github.com/huggingface-internal/moon-landing/blob/main/server/repo_types/SpaceHardwareFlavor.ts (private url).
    z	cpu-basiczcpu-upgradezcpu-xlz	zero-a10gzt4-smallz	t4-mediumÚl4x1Úl4x4Úl40sx1Úl40sx4Úl40sx8z
a10g-smallz
a10g-largeza10g-largex2za10g-largex4z
a100-largeÚh100Úh100x8N)r   r   r   r   Ú	CPU_BASICÚCPU_UPGRADEÚCPU_XLÚ	ZERO_A10GÚT4_SMALLÚ	T4_MEDIUMÚL4X1ÚL4X4ÚL40SX1ÚL40SX4ÚL40SX8Ú
A10G_SMALLÚ
A10G_LARGEÚA10G_LARGEX2ÚA10G_LARGEX4Ú
A100_LARGEÚH100ÚH100X8r   r   r   r   r   0   sx   € € € € € ð	ð 	ð €IØ€KØ€Fð €Ið €HØ€IØ€DØ€DØ€FØ€FØ€FØ€JØ€JØ!€LØ!€LØ€JØ€DØ€F€F€Fr   r   c                   ó   — e Zd ZdZdZdZdZdS )ÚSpaceStoragea5  
    Enumeration of persistent storage available for your Space on the Hub.

    Value can be compared to a string:
    ```py
    assert SpaceStorage.SMALL == "small"
    ```

    Taken from https://github.com/huggingface/moon-landing/blob/main/server/repo_types/SpaceHardwareFlavor.ts#L24 (private url).
    ÚsmallÚmediumÚlargeN)r   r   r   r   ÚSMALLÚMEDIUMÚLARGEr   r   r   r8   r8   U   s)   € € € € € ð	ð 	ð €EØ€FØ€E€E€Er   r8   c                   ó�   — e Zd ZU dZeed<   ee         ed<   ee         ed<   ee         ed<   ee	         ed<   e
ed<   de
d	d
fd„Zd
S )ÚSpaceRuntimea“  
    Contains information about the current runtime of a Space.

    Args:
        stage (`str`):
            Current stage of the space. Example: RUNNING.
        hardware (`str` or `None`):
            Current hardware of the space. Example: "cpu-basic". Can be `None` if Space
            is `BUILDING` for the first time.
        requested_hardware (`str` or `None`):
            Requested hardware. Can be different than `hardware` especially if the request
            has just been made. Example: "t4-medium". Can be `None` if no hardware has
            been requested yet.
        sleep_time (`int` or `None`):
            Number of seconds the Space will be kept alive after the last request. By default (if value is `None`), the
            Space will never go to sleep if it's running on an upgraded hardware, while it will go to sleep after 48
            hours on a free 'cpu-basic' hardware. For more details, see https://huggingface.co/docs/hub/spaces-gpus#sleep-time.
        raw (`dict`):
            Raw response from the server. Contains more information about the Space
            runtime like number of replicas, number of cpu, memory size,...
    ÚstageÚhardwareÚrequested_hardwareÚ
sleep_timeÚstorageÚrawÚdataÚreturnNc                 óN  — |d         | _         |                     di ¦  «                             d¦  «        | _        |                     di ¦  «                             d¦  «        | _        |                     d¦  «        | _        |                     d¦  «        | _        || _        d S )NrA   rB   ÚcurrentÚ	requestedÚ	gcTimeoutrE   )rA   ÚgetrB   rC   rD   rE   rF   )ÚselfrG   s     r   Ú__init__zSpaceRuntime.__init__…   s…   € Ø˜'”]ˆŒ
ØŸš ¨RÑ0Ô0×4Ò4°YÑ?Ô?ˆŒØ"&§(¢(¨:°rÑ":Ô":×">Ò">¸{Ñ"KÔ"KˆÔØŸ(š( ;Ñ/Ô/ˆŒØ—x’x 	Ñ*Ô*ˆŒØˆŒˆˆr   )r   r   r   r   r
   Ú__annotations__r   r   Úintr8   r   rO   r   r   r   r@   r@   f   sœ   € € € € € € ðð ð, ÐÐÑØ�}Ô%Ð%Ð%Ñ%Ø  Ô/Ð/Ð/Ñ/Ø˜”ÐÐÑØ�lÔ#Ð#Ð#Ñ#Ø	€I€I�Ið˜Tð  dð ð ð ð ð ð r   r@   c                   óh   — e Zd ZU dZeed<   eed<   ee         ed<   ee         ed<   dededdfd	„Z	dS )
ÚSpaceVariablea  
    Contains information about the current variables of a Space.

    Args:
        key (`str`):
            Variable key. Example: `"MODEL_REPO_ID"`
        value (`str`):
            Variable value. Example: `"the_model_repo_id"`.
        description (`str` or None):
            Description of the variable. Example: `"Model Repo ID of the implemented model"`.
        updatedAt (`datetime` or None):
            datetime of the last update of the variable (if the variable has been updated at least once).
    ÚkeyÚvalueÚdescriptionÚ
updated_atÚvaluesrH   Nc                 ó¼   — || _         |d         | _        |                     d¦  «        | _        |                     d¦  «        }|�t	          |¦  «        nd | _        d S )NrU   rV   Ú	updatedAt)rT   rU   rM   rV   r   rW   )rN   rT   rX   rW   s       r   rO   zSpaceVariable.__init__£   sW   € ØˆŒØ˜G”_ˆŒ
Ø!Ÿ:š: mÑ4Ô4ˆÔØ—Z’Z Ñ,Ô,ˆ
Ø8BÐ8N�.¨Ñ4Ô4Ð4ÐTXˆŒˆˆr   )
r   r   r   r   ÚstrrP   r   r   r   rO   r   r   r   rS   rS   Ž   s‡   € € € € € € ðð ð 
€H€H�HØ€J€J�JØ˜#”ÐÐÑØ˜Ô"Ð"Ð"Ñ"ðY˜Cð Y¨ð Y°$ð Yð Yð Yð Yð Yð Yr   rS   N)Údataclassesr   r   Úenumr   Útypingr   r   Úhuggingface_hub.utilsr   r[   r
   r   r8   r@   rS   r   r   r   ú<module>r`      si  ðð "Ð !Ð !Ð !Ð !Ð !Ø Ð Ð Ð Ð Ð Ø Ð Ð Ð Ð Ð Ø !Ð !Ð !Ð !Ð !Ð !Ð !Ð !à 0Ð 0Ð 0Ð 0Ð 0Ð 0ðð ð ð ð ��dñ ô ð ð2"ð "ð "ð "ð "�C˜ñ "ô "ð "ðJð ð ð ð �3˜ñ ô ð ð" ð$ð $ð $ð $ð $ñ $ô $ñ „ð$ðN ðYð Yð Yð Yð Yñ Yô Yñ „ðYð Yð Yr   