Created
November 18, 2018 21:31
-
-
Save zcaceres/f95603e37e133f945719682d0e4cc649 to your computer and use it in GitHub Desktop.
Sample 4
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 model_fastai import FastaiImageClassifier | |
class PythonServer(object): | |
def listen(self): | |
print(f'Python Server started listening on {PORT} ...') | |
def predict_from_img(self, img_path): | |
model = FastaiImageClassifier() | |
return model.predict(img_path) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment