Main function starting the webserver.

def main(port=8000, n_output=10, use_segmenter=False):
    """Main function starting the webserver."""
    global n
    global use_segmenter_flag
    n = n_output
    use_segmenter_flag = use_segmenter
    logging.info("Start webserver...")
    app.run(port=port)