def tdm(request, txt): st = time.time() nbc = NaiveBayesClassifier(Drive()) # test_classifer(nbc) c = nbc.whichclass(txt) return HttpResponse('%ss %s'%(time.time()-st, c))