How to add list of numbers separated by commas using st.number?

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.