def query(my_string): simple_sentence = SimpleSentenceGenerator('../words/1000base.txt') return simple_sentence.app_logic(my_string)
def testing(): sentence = request.args.get('sentence', "Saturn five", type=str) simple_sentence = SimpleSentenceGenerator('../words/1000base.txt') return jsonify(sentence=simple_sentence.test_logic(sentence))