Take an input list of float

I would like to take a number_input for a float list.
Below doesnt work, gives str.

marketVols = st.text_input(โ€œVols in %โ€)
collect_vols = lambda x : [int(float(i)) for i in re.split("\D", x) if i != โ€œโ€]
st.write(collect_vols(marketVols))

changing to st.number_input() also doesnt workโ€ฆ
Looking for manual input, not excel upload