When app waiting to load I have doubled (greyed) parts with st.write and st.expander.
Cannot figure out why this is happening (screenshot is important as I cannot explain).
Are you running your app locally or is it deployed?
locally and deployed
If your app is deployed:
a. Is it deployed on Community Cloud or another hosting platform?
AWS EC2 + Lambda
b. Share the link to the public deployed app.
Cannot give a login
Share the link to your app’s public GitHub repository (including a requirements file).
Private
Share the full text of the error message (not a screenshot).
Not an error message
Share the Streamlit and Python versions.
streamlit==1.28.0
streamlit-authenticator==0.2.2
streamlit-webrtc==0.47.1
I cannot reproduce the issue with your code in Streamlit v1.29.0. Note that I had to change the code and add missing parts to make it work so your actual code will be different.
if authentication_status:
# ph = st.empty()
def info():
st.write(_('1. Nakieruj kamerę na pojazd'))
st.write(_('2. Zdjęcia zostaną automatycznie wykonane po wykryciu kadru'))
st.write(_('3. Zanim naciśniesz START wybierz tylną kamerę ---> SELECT DEVICE'))
st.write('')
with st.expander(_('Zdjęcia do wykonania - 5. Rozwiń...'), expanded=False): #, st.session_state.subtract_value)
st.markdown(_('- Prawy skos ( przód / bok kierowcy )'))
st.image('https://wellcam-lambda.s3.eu-central-1.amazonaws.com/wellcam-instruction/prz%C3%B3d.webp', width=285)
st.write('')
st.markdown(_('- Lewy skos ( tył / bok pasażera )'))
st.image('https://wellcam-lambda.s3.eu-central-1.amazonaws.com/wellcam-instruction/ty%C5%82.webp', width=285)
st.write('')
st.markdown(_('- VIN ( na stałym elemencie )'))
st.image('https://wellcam-lambda.s3.eu-central-1.amazonaws.com/wellcam-instruction/vin.webp', width=285)
st.write('')
# st.markdown(_('- Wnętrze od strony kierowcy'))
# st.image('https://wellcam-lambda.s3.eu-central-1.amazonaws.com/wellcam-instruction/wn%C4%99trze.webp', width=285)
# st.write('')
st.markdown(_('- Zegary z przebiegiem'))
st.image('https://wellcam-lambda.s3.eu-central-1.amazonaws.com/wellcam-instruction/zegary.webp', width=285)
st.write('')
# st.markdown(_('- Dowód rejestracyjny'))
# st.image('https://wellcam-lambda.s3.eu-central-1.amazonaws.com/wellcam-instruction/dow_rej.webp', width=285)
# st.write('')
st.markdown(_('- Kluczyk(i)'))
st.image('https://wellcam-lambda.s3.eu-central-1.amazonaws.com/wellcam-instruction/kluczyki.webp', width=285)
info()
time.sleep(50)
endpoint = '...' # HTTP API
headers = {
'Content-Type': 'application/json',
'Connection': 'keep-alive'
}
requests.post(endpoint, headers=headers)
So; requests.post(endpoint, headers=headers) is used to make a single request to Lambda in order to wake it up. I can reproduce this adding; time.sleep(50) before.
While waiting for Lambda this behavior from screenshot occurs.
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
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.
Performance cookies
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.
Functional cookies
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.
Targeting cookies
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.