import os
import GradeSystem.run as GradeSystem
from sklearn.externals import joblib

cfp = os.path.dirname(os.path.abspath(__file__)) + os.sep

clf = joblib.load(
    '{cfp}{sep}GradeSystem{sep}model{sep}train.pkl'.format(sep=os.sep, 
                                                           cfp=cfp))

def predict(input_text):
    return clf.predict(input_text)