I’m not saying it would of shifted away from agriculture, I’m saying machines would of taken over agricultural, like it did everywhere else.
The first reliable and effective cotton picking machine was not invented until the 1920. It picked as much cotton in 1 day as could be picked by 40 men.
But there's no evidence suggesting that either factories or machines would have ended slavery, just the opposite.
By 1860 slaves were working in factories and operating machines of that day, nothing suggests they could not have continued so indefinitely.
Had there been no Civil War, or had Confederates won it, then slavery itself, that "peculiar institution" would have seen (to pervert Lincoln's famous words):
Today we imagine Southern slavery in 1860 was dead or dying, but nobody at the time believed that.