File size: 695 Bytes
1002edf
 
ff928a7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1002edf
ff928a7
1002edf
ff928a7
 
 
1002edf
ff928a7
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import streamlit as st

# Import your page files
import home
import prediction
import about
import contact

# Set up the page configuration
st.set_page_config(page_title="TransPolymer", layout="wide")

# Set up navigation logic
def load_page(page):
    if page == "Home":
        home.show()
    elif page == "Predictions":
        prediction.show()
    elif page == "About":
        about.show()
    elif page == "Contact":
        contact.show()
    else:
        st.error("Page not found")

# Navigation menu
st.sidebar.title("Navigation")
page = st.sidebar.radio("Select a Page", ["Home", "Predictions", "About", "Contact"])

# Call the function to display the selected page
load_page(page)