UnboundLocalError: cannot access local variable 'text' where it is not associated with a value

For a more effective way to communicate your questions on the Streamlit forum, I recommend referring to the thread Using Streamlit: How to Post a Question Effectively. This resource is specifically designed to help you articulate your queries in a clear and concise manner, ensuring that you receive accurate and helpful responses from the community.