Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update main branch #1

Merged
merged 3 commits into from
Nov 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion aimm.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def show_help(program_name):
print(" info <model_name>:[version] Get info about a model.")
print(" install <model_name>:[version] Install a model.")
print(" uninstall <model_name>:[version] Uninstall a model.")
print(" credentials <user>:<password>@<domain> Set credentials.")
print(" credentials <user>@<domain> Set credentials.")
print()
print("Search:")
print(" search <query> Search for a model.")
Expand Down
2 changes: 1 addition & 1 deletion cli/add.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def add(name_version: str):
# append name and version to aimodels.json if not already there
add_it = True
for package_name, package_version in aimodels.items():
if package_name == name and package_version == version:
if package_name.lower() == name.lower() and package_version == version:
typer.echo(f"{name}:{version} already added.")
add_it = False
return
Expand Down
4 changes: 2 additions & 2 deletions cli/base_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def hf_get_user() -> str:

def hf_get_pass() -> str:
# get auth_pass from user
auth_pass = typer.prompt("Huggingface password")
auth_pass = typer.prompt("Huggingface password", hide_input=True)
return auth_pass

def gh_get_user() -> str:
Expand All @@ -109,5 +109,5 @@ def gh_get_user() -> str:

def gh_get_pass() -> str:
# get auth_pass from user
auth_pass = typer.prompt("Github password")
auth_pass = typer.prompt("Github password", hide_input=True)
return auth_pass