Neural network analyzes gravitational waves in real time