Skip to content

Commit

Permalink
Merge pull request #1 from visioninit/dev
Browse files Browse the repository at this point in the history
Update main branch
  • Loading branch information
neural-loop authored Nov 12, 2022
2 parents 2dd0ac1 + 71e360f commit 1937cf7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
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

0 comments on commit 1937cf7

Please sign in to comment.