AttributeError: module ‘streamlit’ has no attribute ‘beta_set_page_config’, giving this error on heroku deployment…anyone please help me out.
I think you need to upgrade your streamlit version. In your
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.
Thanks amaan, Issuw has been resolved, Do you how we can align two OR three OR four buttons in a row?
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
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?
You mean logo in place of that X?
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.