ai-yash/st-chat — reverse-engineered prompt
Reverse engineered prompt
Build me a small Streamlit chat UI component that I can drop into a chatbot app and use with just a simple message function.
I want it to show bot messages on the left and user messages on the right, with a clean chat bubble style that looks good out of the box. It should support normal text, line breaks, markdown, tables, and optional trusted HTML so things like audio, images, and embedded video can render inside chat replies. Please include a demo Streamlit app that keeps chat history in session state, lets me type a message, adds a fake bot reply, and has a clear chat button.
Make the basic usage really simple, something like calling one function for each message. Also include a couple of example scripts and short docs so someone can quickly copy the pattern into their own app. If anything is unclear, look up current Streamlit component docs online and make it feel polished and easy to use.
Want more depth? Deep Reverse