From spin chains to real-time thermal field theory using tensor networks