I’m trying to pass a list of [0.1,0.2,0.25,0.25,0.2] through the st.number_input but it seems like streamlit only accept single number. Is there anyway to work around this issue?
I also am frustrated by this. We need a st.list_input().
I useually use :
listInput = [float(x) for x in st.text_input(“List input”, “[0.1,0.2,0.25,0.25,0.2].replace(”[“,”“).replace(”[“,”“).split(”,“)”)]
Could you elaborate a bit more? I’m getting syntax errors
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.