Changed the search bar text_input widget to have a label as its not allowed to be empty on streamlit 1.13.0 and will give a warning and possible an error later.

This commit is contained in:
ZeroCool940711 2022-09-24 18:05:08 -07:00
parent b8b9df717a
commit 9c12a6a322

View File

@ -155,7 +155,7 @@ def layout():
st.session_state["cl_search_results_count"] = downloaded_concepts_count
# Search bar
search_text_input = st.text_input("", "", placeholder=f'Search for a concept ({downloaded_concepts_count} available)')
search_text_input = st.text_input("Search", "", placeholder=f'Search for a concept ({downloaded_concepts_count} available)')
if search_text_input != st.session_state["cl_search_text"]:
# Search text has changed
st.session_state["cl_search_text"] = search_text_input