Hundreds of workers were forced to evacuate the factory in the early hours of Thursday morning after a dangerous chemical leak.