Skip to content

Commit

Permalink
Wrapper fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Meadows committed Aug 14, 2020
1 parent fb8be04 commit e2a2dc0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions python/seldon_core/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ def _set_flask_app_configs(app):
env_to_config_map = {
"FLASK_JSONIFY_PRETTYPRINT_REGULAR": "JSONIFY_PRETTYPRINT_REGULAR",
"FLASK_JSON_SORT_KEYS": "JSON_SORT_KEYS",
"FLASK_PROPAGATE_EXCEPTIONS": "PROPAGATE_EXCEPTIONS",
}

for env_var, config_name in env_to_config_map.items():
Expand All @@ -198,7 +199,9 @@ def __init__(self, user_model, seldon_metrics):
self.user_model = user_model
self.seldon_metrics = seldon_metrics

self.metadata_data = seldon_core.seldon_methods.init_metadata(user_model)
self.metadata_data = seldon_core.seldon_methods.init_metadata(
user_model
)

def Predict(self, request_grpc, context):
return seldon_core.seldon_methods.predict(
Expand Down Expand Up @@ -240,7 +243,9 @@ def ModelMetadata(self, request_grpc, context):

def GraphMetadata(self, request_grpc, context):
"""GraphMetadata method of rpc Seldon service"""
raise NotImplementedError("GraphMetadata not available on the Model level.")
raise NotImplementedError(
"GraphMetadata not available on the Model level."
)


def get_grpc_server(
Expand Down

0 comments on commit e2a2dc0

Please sign in to comment.