Skip to content

Instantly share code, notes, and snippets.

@caleb-kaiser
Created January 5, 2021 16:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caleb-kaiser/feaa0e703532aa2dbeb456482e73066b to your computer and use it in GitHub Desktop.
Save caleb-kaiser/feaa0e703532aa2dbeb456482e73066b to your computer and use it in GitHub Desktop.
No Python client
class PythonPredictor:
def __init__(self, config):
self.model = # Download model from any source (can also be configured in API spec).
def predict(self, payload):
return self.model(payload) # payload is now a list of payloads
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment