Flask is a tool for having the pi host a local webserver (A web server is a computer that runs websites). Flask should be pre-installed on the Pi.