Skip to content

Instantly share code, notes, and snippets.

@caleb-kaiser
Last active January 14, 2020 21:19
Show Gist options
  • Save caleb-kaiser/637aa5cafb7e1485cfebf968d34a5bba to your computer and use it in GitHub Desktop.
Save caleb-kaiser/637aa5cafb7e1485cfebf968d34a5bba to your computer and use it in GitHub Desktop.
from summarizer import Summarizer
class PythonPredictor:
def __init__(self, config):
self.model = Summarizer()
def predict(self, payload):
return self.model(payload["text"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment