Two dimensional hydrodynamics with gauge and gravitational anomalies