AttributeError: module ‘streamlit’ has no attribute ‘beta_set_page_config’, giving this error on heroku deployment…anyone please help me out.
@Daniyal56
I think you need to upgrade your streamlit version. In your requirements.txt
file,
change your streamlit version to this - streamlit==0.69.0
. Then re-deploy the app on heroku. This should work. If it does not, let me know.
Best Wishes,
Amaan
Thanks amaan, Issuw has been resolved, Do you how we can align two OR three OR four buttons in a row?
@Daniyal56
Yeah, we can align the buttons using streamlit columns. Try out this code and see:
import streamlit as st
col1, col2, col3 = st.beta_columns(3)
with col1:
if st.button('Button1'):
st.success('Yayyyy1')
with col2:
if st.button('Button2'):
st.success('Yayyyyy2')
with col3:
# And follow the pattern....
For more info, checkout this docs: https://docs.streamlit.io/en/stable/api.html?highlight=beta_columns#streamlit.beta_columns
Best Wishes,
Amaan
Thanks Amaan for helping me, I have one more question if you dont get mind, I want to remove OR place some logo here, how can i do this?
@Daniyal56
You mean logo in place of that X?
Yeah.
I think we cannot change it as it is the default streamlit layout.
Actually, I am not sure if we can change it. Better ask someone from the creators.
Amaan
Hi If you are using streamlit>=0.73.0
You have to change this
beta_set_page_config
→ set_page_config