CoolFace
Apppublic

abidlabs/trackio-123

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
utils.cpython-310.pyc16 linesDownload Raw Back to __pycache__
1o

2rj7h�@svddlZddlZddlZddlZddlmZddlmZgd�Zej	�3ed�Zeee
�j�d��Zdd�Zd	d4�ZdS)�N)�Path)�HF_HOME)�project�run�	timestamp�step�trackioztrackio_logo.pngcCsDgd�}gd�}t�|�}t�|�}t�dd�}|�d|�d|��S)zB5    Generates a random, readable name like "dainty-sunset-1"6    )ZZdaintyZbraveZcalm�eager�fancyZgentleZhappyZjolly�kind�livelyZmerry�niceZproud�quickZsillyZtidyZwittyZzealous�bright�shy�boldZcleverZdaringZelegantZfaithfulZgracefulZhonestZ	inventiveZjovialZkeenZluckyZmodestZnobleZ7optimisticZpatientZquirkyZresourcefulZsincereZ8thoughtfulZupbeatZvaliantZwarmZyouthfulZzestyZadventurousZbreezyZcheerfulZ9delightfulZ	energeticZfearlessZgladZhopefulZimaginativeZjoyfulZkindlyZluminousZ10mysteriousZneat�outgoingZplayfulZradiantZspiritedZtranquil�uniqueZvividZwiseZzanyZartfulZbubblyZcharmingZdazzlingZearnestZfestiveZgentlemanlyZheartyZintrepidZjubilantZknightlyrZmagneticZnimbleZorderlyZpeacefulzquick-wittedZrobustZsturdyZtrustyZ11upstandingZvibrantZ	whimsical)Z�sunsetZforestZriver�mountainZbreezeZmeadow�oceanZvalley�sky�field�cloud�starZrainZleaf�stoneZflower�bird�tree�wave�trailZisland�desertZhillZlakeZpondZgroveZcanyonZreefZbayZpeakZgladeZmarshZcliffZduneZspringZbrookZcave�plainZridgeZwood�blossomZpetal�root�branch�seedZacornZpineZwillowZcedar�elmZfalcon�eagleZsparrowZrobin�owlZfinchZheronZcrane�duck�swan�fox�wolf�bear�deerZmoose�otterZbeaver�lynx�hare�badger�	butterfly�bee�ant�beetleZ	dragonflyZfireflyZladybugZmoth�spiderZworm�coralZkelp�shellZpebbleZboulderZcobbleZsandZwaveletZtide�current��c�-)�random�choice�randint)Z12adjectivesZnounsZ	adjective�noun�number�rC�,/Users/abidlabs/dev/trackio/trackio/utils.py�generate_readable_names\13\14rEc	CsLtttdtjj��}|rdSz	t�d�qttfy%t	d�YdSw)N�ps1Tg�������?z:Keyboard interruption in main thread... closing dashboard.)15�bool�getattr�sys�flags�interactive�time�sleep�KeyboardInterrupt�OSError�print)Zin_notebookrCrCrD�block_except_in_notebook�s16��rQ)�osr>rIrL�pathlibrZhuggingface_hub.constantsrZ
RESERVED_KEYS�path�join�TRACKIO_DIR�str�__file__�parent�joinpath�TRACKIO_LOGO_PATHrErQrCrCrCrD�<module>sC