geethareddy commited on
Commit
225b521
Β·
verified Β·
1 Parent(s): 3a27aaa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -20
app.py CHANGED
@@ -1,20 +1,12 @@
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
 
1
+ import gradio as gr
2
+ from components.menu import render_menu
3
+
4
+ def main():
5
+ with gr.Blocks(css="static/css/styles.css") as app:
6
+ gr.Markdown("# Welcome to Our Restaurant!")
7
+ gr.Markdown("### Explore the best Indian and Chinese food!")
8
+ render_menu(app)
9
+ app.launch()
10
+
11
+ if __name__ == "__main__":
12
+ main()