Example #1
0
def query(my_string):
  simple_sentence = SimpleSentenceGenerator('../words/1000base.txt') 
  return simple_sentence.app_logic(my_string)
Example #2
0
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))