File size: 842 Bytes
c32b737 |
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 32 33 34 35 36 |
# Main entry point of the Streamlit application
import streamlit as st
import sys
from pathlib import Path
# Import all pages from the pages module
from src.pages import home_page, about_page, contact_page, map_page, optimize_page
def main():
st.set_page_config(
page_title="Delivery Route Optimization",
page_icon="π",
layout="wide",
initial_sidebar_state="expanded",
)
st.sidebar.title("Navigation")
# Sidebar navigation
pages = {
"Home": home_page,
"Map": map_page,
"Optimizer": optimize_page, # Add the new page
"About": about_page,
"Contact": contact_page
}
selection = st.sidebar.radio("Go to", list(pages.keys()))
# Render the selected page
pages[selection]()
if __name__ == "__main__":
main()
|