/usr/local/lib/python3.6/site-packages/transformers/commands/__pycache__
Edit: /usr/local/lib/python3.6/site-packages/transformers/commands/__pycache__/user.cpython-36.pyc (8453B)
3
Eg @ s d dl Z d dlmZ d dlmZ d dlmZmZ d dlmZm Z m
Z
mZmZ d dl
mZ ddlmZ d ZG d
d deZG dd
d
Zeeeeef ee edddZG dd dZG dd deZG dd deZG dd deZG dd deZdS ) N)ArgumentParser)getpass)ListUnion)HfFoldercreate_repologinlogoutwhoami) HTTPError )BaseTransformersCLICommand c @ s e Zd ZeedddZdS )UserCommands)parserc C s | j ddd}|jdd d | j ddd}|jd d d | j d
dd}|jdd d | j d
dd}|jdd}|j ddd}|jdtdd |jdtdd |jddddd |jdd d d S )Nr z6Log in using the same credentials as on huggingface.co)helpc S s t | S )N)LoginCommand)args r D/usr/local/lib/python3.6/site-packages/transformers/commands/user.py
! s z2UserCommands.register_subcommand..)funcr
z;Find out which huggingface.co account you are logged in as.c S s t | S )N)
WhoamiCommand)r r r r r # s r zLog outc S s t | S )N)
LogoutCommand)r r r r r % s repoz_Deprecated: use `huggingface-cli` instead. Commands to interact with your huggingface.co repos.zPDeprecated: use `huggingface-cli` instead. huggingface.co repos related commandscreatezNDeprecated: use `huggingface-cli` instead. Create a new repo on huggingface.conamezYName for your model's repo. Will be namespaced under your username to build the model id.)typer z--organizationz!Optional: organization namespace.z-yz--yes
store_truez"Optional: answer Yes to the prompt)actionr c S s t | S )N)RepoCreateCommand)r r r r r 9 s )
add_parserset_defaultsadd_subparsersadd_argumentstr)r Zlogin_parserZ
whoami_parserZ
logout_parserZrepo_parserZrepo_subparsersZrepo_create_parserr r r register_subcommand s(
z UserCommands.register_subcommandN)__name__
__module____qualname__staticmethodr r&