The monumental textile factory turned into a library