Created
January 5, 2021 16:30
-
-
Save caleb-kaiser/feaa0e703532aa2dbeb456482e73066b to your computer and use it in GitHub Desktop.
No Python client
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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