Display event history

I am new to Streamlit. Currently I have been working on a human detection app. Given that I take the rtsp stream and push it to the AI model for processing, I want to display the event history on web, i.e displaying number of people and time when they appeared in the camera, in a realtime way. I also want to keep the past event displaying on web, so users can check them. Please tell me how I can do that. Thanks in advance.