Sometimes, this problem appears:
AttributeError: ‘NoneType’ object has no attribute ‘group’ or
TypeError: ‘NoneType’ object is not iterable
Sometimes its OK, in
https://share.streamlit.io/luiscarloseiras/gpt-2pt/main/gpt-2.py
Sometimes, this problem appears:
AttributeError: ‘NoneType’ object has no attribute ‘group’ or
TypeError: ‘NoneType’ object is not iterable
Sometimes its OK, in
https://share.streamlit.io/luiscarloseiras/gpt-2pt/main/gpt-2.py
Hey @LuisCarlosEiras,
First off welcome to the Streamlit Community!
To help you with your question:
This warning is coming up because when you call the st.text_area('some text')
with only one parameter (the ‘some text’ part) passes an empty string to your translator which is giving you the AttributeError
you see.
To make this work as is: you simply need to add some default text to render in the text area so that the string you pass to the translator is not empty.
text_unlim = st.text_area("Area for text", "Text to Display")
This gives:
Happy Streamlit-ing!
Marisa
Thanks, Marisa. I loved it! I will try until today.
I just have two streamlit:
https://share.streamlit.io/luiscarloseiras/queneau/main/queneau.py
https://share.streamlit.io/luiscarloseiras/quantossites/main/Quantossites.py
Luís Carlos
Hi, Marisa,
I made the changes, but it’s still unstable, sometimes it works OK, sometimes it doesn’t.
I would like to know if there would be a solution for when the error appeared, there would be a new processing without the user knowing.
Thanks,
Luis Carlos
An example:
I fixed it with google-trans-new==1.1.9.
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.