A search bar is an input control for finding or selecting data. In Streamlit, a search box is a parameterized component: provide a search function, label, key, defaults, and placeholder, then let the component handle rendering and interaction. section 9.1.3
Selecting two players
Two search boxes call search_players as their contents change. Typing “Murr” returns Andy Murray; selecting a result assigns it to player1 or player2. Those values can parameterize a database query, produce a DataFrame, and drive a comparison of matches and wins. section 9.1.3
