Guest User

Untitled

a guest
Nov 18th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. from model_fastai import FastaiImageClassifier
  2.  
  3. class PythonServer(object):
  4. def listen(self):
  5. print(f'Python Server started listening on {PORT} ...')
  6.  
  7. def predict_from_img(self, img_path):
  8. model = FastaiImageClassifier()
  9. return model.predict(img_path)
Add Comment
Please, Sign In to add comment