Skip to content

Commit

Permalink
add type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
kaczmarj committed Jun 22, 2023
1 parent 1190dda commit e31c60c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wsinfer_zoo/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from wsinfer_zoo.client import HF_WEIGHTS_SAFETENSORS_NAME
from wsinfer_zoo.client import InvalidModelConfiguration
from wsinfer_zoo.client import InvalidRegistryConfiguration
from wsinfer_zoo.client import Model
from wsinfer_zoo.client import load_registry
from wsinfer_zoo.client import validate_config_json

Expand Down Expand Up @@ -96,6 +97,7 @@ def get(*, model_name: str, weights_format: str, registry_file: str):

registered_model = registry.get_model_by_name(model_name)

model: Model
if weights_format == "torchscript":
model = registered_model.load_model_torchscript()
elif weights_format == "pytorch":
Expand Down

0 comments on commit e31c60c

Please sign in to comment.