Adding function to load weights from a CSV.