The package looks great!. I wanted to know if there is a simple way to take a text input from the user and use the input to filter or create views on streamlit. Since there are many millions of data points , i am unable to use the slider or dropdown option for this
Hi all,
Has anyone successfully tried to use this input function to get the location of a file and use it to load data?
I’m a entering the location of the file in my system and using pandas to read the csv but I haven’t been able to see the data.
Thanks in advance
Obrigado @thiago! Works like a charm. I appreciate the help.
GM
Update – This works perfect on the localhost. I am able to retrieve any dataframe from my machine and perform EDA. I deployed this to heroku but I am not able to access the files. I encounter a: FileNotFoundError:[[Errno2] File 'bFileName does not exist eda-st.herokuapp.com
Hi, I have been using Streamlit for a while. The text input package looks great. There is an issue I am running into. I have been using a text input in my app to ask the user for word input. The word they write is to get added to an already existing list. Now, once the word is added, and the user wants to input a new word, the previous word is getting removed from the list. Is there a way to make the text inputs from users permanent? Thanks in advance.
Hey maybe a bit late, but I think you can append the variable of the text_input to the list in question.
Let me know if you need an example.
Good Luck!
def text_field(label, columns=None, **input_params):
c1, c2 = st.columns(columns or [1, 4])
# Display field name with some alignment
c1.markdown("##")
c1.markdown(label)
# Sets a default key parameter to avoid duplicate key errors
input_params.setdefault("key", label)
# Forward text input parameters
return c2.text_input("", **input_params)
username = text_field("Questions:-",)
# Notice that you can forward text_input parameters naturally
answer= text_field(("Answer:-"))
I have this code and I want to increase the answer field area like text_area.
I tried it to write answer= st.text_area(text_field(("Answer:-"))) but does not work.