A refinement of Gruss type inequality for the Bochner Integral of vector-valued functions in Hilbert spaces and applications