Can vary depending on the brake but essentially what’s happened is that a bit of air in the system would normally live in the reservoir at the top. As you’ve had the bike inverted, the top is now at the caliper. The difference is, if the air is in the reservoir, then when the lever is pulled, it’s not in the closed, working part of the circuit. If it’s near the caliper, it is in the closed working part of the circuit and makes things feel spongy. Quick easy fix is to tie the levers back in an “ON” position and this will pressurise the system and force the air up. The other ting that will help is bleeding the brakes. If there’s no in in the reservoir, then no air can travel “up” to the caliper when the bike is inverted. The other option is a couple of bits of inner tube over the bars to pull the levers, there by closing the system. Then invert the bike and hand it up with the air still trapped in the reservoir. However, of all that, best thing to do is bleed them. hope that makes sense, I’m just off to bed so it might read like gibberish.