Example #1
0
def timed(str):
    t0 = time.time()
    results = RhymeMaker.rhyme(str)
    t1 = time.time()

    print results
    return t1 - t0
Example #2
0
def ajax_rhyme():
	word = request.args.get('word','')
	rhymes = RhymeMaker.rhyme(word,75)
	# return render_template('home.html', word=word, rhymes=rhymes)
	return json.dumps(rhymes)