Skip to content

Commit

Permalink
Merge pull request #537 from hmonteiro/fix_module_based_serving
Browse files Browse the repository at this point in the history
Allow fully qualified class name to be used for the model serving image.
  • Loading branch information
ukclivecox committed May 4, 2019
2 parents ddc2d90 + 1fac118 commit 67b29d7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/seldon_core/microservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def main():
user_class = getattr(interface_file, args.interface_name)
else:
logger.info("Importing submodule %s",parts)
interface_file = importlib.import_module(args.interface_name)
interface_file = importlib.import_module(parts[0])
user_class = getattr(interface_file, parts[1])

if args.persistence:
Expand Down
2 changes: 1 addition & 1 deletion python/tests/model-template-app2/.s2i/environment
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MODEL_NAME=mymodule.MyModel
MODEL_NAME=mymodule.my_model.MyModel
API_TYPE=REST
SERVICE_TYPE=MODEL
PERSISTENCE=0

0 comments on commit 67b29d7

Please sign in to comment.