Spaces:
Sleeping
Sleeping
import streamlit as st | |
from page1 import page1 | |
from page2 import page2 | |
def background(): | |
st.markdown(f""" | |
<style> | |
/* Set the background image for the entire app */ | |
.stApp {{ | |
background-color:rgba(96, 155, 124, 0.5); | |
background-size: 1300px; | |
background-repeat: no-repeat; | |
background-attachment: fixed; | |
background-position: center; | |
}} | |
</style> | |
""", unsafe_allow_html=True) | |
def main(): | |
if 'page' not in st.session_state: | |
st.session_state.page = 'Page1' | |
if st.session_state.page == 'Page1': | |
page1() | |
elif st.session_state.page == 'Page2': | |
page2() | |
if __name__ == "__main__": | |
main() |