Team Ai
Apppublic

WalisonCruz/function-gemma

sourceHugging Faceupdated 10mo agoView on Hugging Face
0likes
cli.cpython-312.pyc17 linesDownload Raw Back to __pycache__
1�

267Eik��<�ddlZddlmZmZd�Zedk(re�yy)�N)�show�syncc�&�tjd��}|jd��}|jdd��}|j	dd	d3��|j	dd	d
d��|j	ddd��|j	dddd��|j	dddd��|j	dd	d��|jdd ��}|j	ddd!��|j	d"dd#��|j	d$dd%��|j	d&dd'��|j�}|jdk(r}d}|jr6|jjd(�D�cgc]}|j���}}t|j|j|j|j|�)�y|jdk(r8t|j|j |j"|j$�*�y|j'�ycc}w)+NzTrackio CLI)�description�command)�destrz+Show the Trackio dashboard UI for a project)�helpz	--projectFz%Project name to show in the dashboard)�requiredr	z--theme�defaultz�A Gradio Theme to use for the dashboard instead of the default, can be a built-in theme (e.g. 'soft', 'citrus'), or a theme from the Hub (e.g. 'gstaff/xkcd').)r4rr	z--mcp-server�5store_truez�Enable MCP server functionality. The Trackio dashboard will be set up as an MCP server and certain functions will be exposed as MCP tools.)�actionr	z--footerTz3Show the Gradio footer. Use --no-footer to hide it.)r
rr	z--no-footer�footer�store_falsezHide the Gradio footer.)rr
r	z--color-palettez�Comma-separated list of hex color codes for plot lines (e.g. '#FF0000,#00FF00,#0000FF'). If not provided, the TRACKIO_COLOR_PALETTE environment variable will be used, or the default palette if not set.rziSync a local project's database to a Hugging Face Space. If the Space does not exist, it will be created.zThe name of the local project.z6--space-idzTThe Hugging Face Space ID where the project will be synced (e.g. username/space_id).z	--privatez�Make the Hugging Face Space private if creating a new Space. By default, the repo will be public unless the organization's default is private. This value is ignored if the repo already exists.z--forcezCOverwrite the existing database without prompting for confirmation.�,)�project�theme�7mcp_serverr�
color_palette)r�space_id�private�force)�argparse�ArgumentParser�add_subparsers�8add_parser�add_argument�9parse_argsrr�split�striprrrrrrrrr�10print_help)�parser�11subparsers�	ui_parser�sync_parser�argsr�colors       �6/usr/local/lib/python3.12/dist-packages/trackio/cli.py�mainr(sa��
�
$�
$��
?�F��&�&�I�&�6�J��%�%��B�&��I�����e�*Q���������n�	�������Z���12������
B�	������
��
&�	�������Y����'�'��
x�(��K�����d�)I��������
c���13�����P���14�����
R�������D��|�|�v���
����8<�8J�8J�8P�8P�QT�8U�V�8U�u�U�[�[�]�8U�M�V���L�L��*�*�����;�;�'�	15�16����	���L�L��]�]��L�L��*�*�		17�	�����!Ws�$H�__main__)r�trackiorrr(�__name__��r'�<module>r.s&����S�l�z���F�r-