Spaces:
Sleeping
Sleeping
File size: 926 Bytes
85d27e3 f452090 1b116d0 b1a108b e32f1e1 85d27e3 0f510ea 85d27e3 0f510ea 85d27e3 73ba9e6 85d27e3 |
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 |
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()
|