You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, can you provide more details on how you're using st_searchbox? the search function should only be called when the user is typing something, e.g.
import streamlit as st
from streamlit_searchbox import st_searchbox
def search(searchterm: str):
# this will only be called when the user types something
print(f"searching for {searchterm}")
return [f"{searchterm}_{i}" for i in range(10)]
result = st_searchbox(search_function=search, key="search_key")
st.write(result)
No description provided.
The text was updated successfully, but these errors were encountered: