geethareddy commited on
Commit
3a27aaa
Β·
verified Β·
1 Parent(s): 29ee8ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -15
app.py CHANGED
@@ -1,15 +1,20 @@
1
- import gradio as gr
2
- from components.menu import generate_menu
3
-
4
- def main():
5
- with gr.Blocks(css="static/css/styles.css") as app:
6
- gr.Markdown("# Restaurant Menu - Indian & Chinese Cuisine πŸœπŸ›")
7
-
8
- # Generate the menu dynamically
9
- menu_section = generate_menu()
10
- app.add(menu_section) # Add the menu section to the app
11
-
12
- app.launch(share=True) # Allow external access for Hugging Face Space
13
-
14
- if __name__ == "__main__":
15
- main()
 
 
 
 
 
 
1
+ restaurant_project/
2
+ β”‚
3
+ β”œβ”€β”€ app.py # Main application logic
4
+ β”œβ”€β”€ components/
5
+ β”‚ β”œβ”€β”€ menu.py # Menu item and popup card logic
6
+ β”‚ β”œβ”€β”€ popup_card.py # Popup card layout and interaction
7
+ β”‚ └── utils.py # Helper functions for beautification and formatting
8
+ β”‚
9
+ β”œβ”€β”€ static/
10
+ β”‚ β”œβ”€β”€ css/
11
+ β”‚ β”‚ β”œβ”€β”€ styles.css # Custom CSS for styling and beautification
12
+ β”‚ β”‚
13
+ β”‚ β”œβ”€β”€ images/
14
+ β”‚ β”œβ”€β”€ food_items/ # Folder for food item 3D images
15
+ β”‚ └── icons/ # Folder for icons and graphics
16
+ β”‚
17
+ └── templates/
18
+ β”œβ”€β”€ card.html # Popup card template
19
+ β”œβ”€β”€ menu.html # Menu page template
20
+ └── summary.html # Order summary template