Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,20 +1,12 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 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()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|