China’s second-largest short-video platform has been spending big on artificial intelligence as competition heats up.