Buoyed by a rise in consumer spending, Thailand narrowly avoided a technical recession thanks to a surprise upswing in the second quarter. The new government is hoping this shift, combined with its own plans to increase public spending across key sectors, will help entice investors.