Gray will be acting-manager and will pick the side for the away game against Sunderland on Tuesday night and will remain in charge until a new manager is installed.
"Stuart Gray has taken over as acting manager and hopefully things will improve," chairman Rick Hayward has said.
"We will be looking for a new manager, hopefully someone who can take us up at the end of the season."