import gradio as gr from components.login_signup import login_signup from components.preferences_allergies import preferences_page from components.menu_display import menu_page from components.cart_management import cart_page from components.order_history import order_history_page from components.place_order import place_order_page def main(): with gr.Blocks() as app: gr.Markdown("# Welcome to BH Restaurant Ordering System") # Tabs for different functionalities with gr.Tab("Login/Sign-Up"): login_signup() with gr.Tab("Preferences"): preferences_page() with gr.Tab("Menu"): menu_page() with gr.Tab("Cart"): cart_page() with gr.Tab("Order History"): order_history_page() with gr.Tab("Place Order"): place_order_page() app.launch() if __name__ == "__main__": main()