The gyroscopic effect is not necessary, and it has been demonstrated both in reality and in simulation [0].
The central principle behind why a bicycle is self balancing while in motion is the fact that it self-steers in the same direction that it is leaning, which counteracts the fall [0][1].