Gartner forecasts large growth in global AI spending as enterprises shift focus to commercial tools away from custom projects that often fail.