Problem using st.text_input widgets inside while loop

Hi,

I’m trying to make a real-time app for measuring sensor data. I have a st.text_input widget that is used for giving the name to a csv file, after this a start button is pressed and the measurement starts and the while loop commences, introducing a new st.text_input widget for saving information related to the measurements mid-run. However, i’m getting a DuplicateWidgetID error, even though i’ve set different keys for both of them. Is there any way to circumvent this issue? Thankful for any kind of help.

Hi,

Well, it seems like you missed something and you do have a DuplicateWidgetID. If tou post a snippet of that code it would help debugging.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.