Skip to content

Commit

Permalink
Correct linting
Browse files Browse the repository at this point in the history
Signed-off-by: Thanawan Atchariyachanvanit <[email protected]>
  • Loading branch information
thanawan-atc committed Jul 20, 2023
1 parent 55c6f26 commit ae631d3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def docs(session):
session.cd("docs")
session.run("make", "clean", external=True)
session.run("make", "html", external=True)


def trace(session):
session.install(
Expand Down
File renamed without changes.
7 changes: 4 additions & 3 deletions utils/model_uploader/model_autotracing.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

THIS_DIR = os.path.dirname(__file__)
ROOT_DIR = os.path.join(THIS_DIR, "../..")
sys.path.append(ROOT_DIR) # Required for importing OPENSEARCH_TEST_CLIENT
sys.path.append(ROOT_DIR) # Required for importing OPENSEARCH_TEST_CLIENT

LICENSE_PATH = "LICENSE"
from opensearch_py_ml.ml_commons import MLCommonClient
Expand Down Expand Up @@ -142,7 +142,6 @@ def register_and_deploy_sentence_transformer_model(

# 1.) Register & Deploy the model
model_id = ""
task_id = ""
try:
model_id = ml_client.register_model(
model_path=model_path,
Expand All @@ -154,7 +153,9 @@ def register_and_deploy_sentence_transformer_model(
print(f"{model_format}_model_id:", model_id)
assert model_id != "" or model_id is not None
except Exception as e:
assert False, f"Raised Exception in {model_format} model registration/deployment: {e}"
assert (
False
), f"Raised Exception in {model_format} model registration/deployment: {e}"

# 2.) Check model status
try:
Expand Down

0 comments on commit ae631d3

Please sign in to comment.