Last active
January 14, 2020 21:19
-
-
Save caleb-kaiser/637aa5cafb7e1485cfebf968d34a5bba to your computer and use it in GitHub Desktop.
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
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