@app.route('/compare', methods=['POST'])
def compare():
    (user0, user1) = sorted([request.values['user1'], request.values['user2']])
    if (user0 == user1):
        message = 'Cannot compare users to themselves!'
    else:
        hypo_tweet_text = request.values['tweet_text']
        prediction = predict_user(user0, user1, hypo_tweet_text)
        message = "'{}' is more likely to be said by {} than {}".format(hypo_tweet_text, (user1 if prediction else user0), (user0 if prediction else user1))
    return render_template('prediction.html', title='Prediction:', message=message)
@app.route('/compare', methods=['POST'])
def compare():
    (user0, user1) = sorted([request.values['user1'], request.values['user2']])
    if (user0 == user1):
        message = 'Cannot compare users to themselves!'
    else:
        hypo_tweet_text = request.values['tweet_text']
        prediction = predict_user(user0, user1, hypo_tweet_text)
        message = "'{}' is more likely to be said by {} than {}".format(hypo_tweet_text, (user1 if prediction else user0), (user0 if prediction else user1))
    return render_template('prediction.html', title='Prediction:', message=message)