You realise such transitions take crop cycles - if the current crops fail because lack of labour and it leads to a food shortage food prices will go through the roof.
PS: In the short term inflation and deflation can be caused by a huge range of effects, but in the long term it’s bound by government spending and taxation.