def respond(question): encoded_question = data_utils_2.encode(question, w2idx, limit['maxq']) answer = model.predict(session, encoded_question)[0] return data_utils_2.decode(answer, idx2w) # Setting up the chat #while True : ''''
def respond(question): encoded_question = data_utils_2.encode(question, w2idx, limit['maxq']) answer = model.predict(session, encoded_question)[0] return data_utils_2.decode(answer, idx2w)