You can check train timetables on trenitalia.com (and buy online if date is within the next 2-3 months) - you will see trains from both Pisa Centrale and Florence to Venice. There are faster trains leaving from Florence, the ones from Pisa will likely have you come into Florence, change train to proceed to Venice.