Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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)
Add Comment
Please, Sign In to add comment