Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,65 +1,70 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
|
|
|
|
|
|
| 3 |
menu_data = [
|
| 4 |
{"name": "Veg Burger", "category": "VEGAN",
|
| 5 |
-
"image": "https://
|
| 6 |
"description": "A delicious vegan burger with plant-based patty, lettuce, and tomato."},
|
| 7 |
{"name": "Chicken Biryani", "category": "HALAL",
|
| 8 |
-
"image": "https://
|
| 9 |
"description": "Spicy chicken biryani with aromatic basmati rice and tender chicken pieces."},
|
| 10 |
{"name": "Paneer Butter Masala", "category": "VEGAN",
|
| 11 |
-
"image": "https://
|
| 12 |
"description": "Paneer cooked in a rich and creamy tomato-based gravy."},
|
| 13 |
{"name": "Beef Steak", "category": "HALAL",
|
| 14 |
-
"image": "https://
|
| 15 |
"description": "Juicy beef steak served with mashed potatoes and grilled vegetables."},
|
| 16 |
{"name": "Mushroom Soup", "category": "VEGAN",
|
| 17 |
-
"image": "https://
|
| 18 |
"description": "Creamy mushroom soup with fresh herbs."},
|
| 19 |
{"name": "Tandoori Chicken", "category": "HALAL",
|
| 20 |
-
"image": "https://
|
| 21 |
"description": "Grilled chicken marinated in yogurt and spices, cooked in a tandoor."},
|
| 22 |
{"name": "Grilled Veggies", "category": "VEGAN",
|
| 23 |
-
"image": "https://
|
| 24 |
"description": "A healthy mix of grilled seasonal vegetables with olive oil."},
|
| 25 |
{"name": "Butter Naan", "category": "VEGAN",
|
| 26 |
-
"image": "https://
|
| 27 |
"description": "Soft and buttery flatbread, perfect to pair with any curry."},
|
| 28 |
{"name": "Fish Curry", "category": "HALAL",
|
| 29 |
-
"image": "https://
|
| 30 |
"description": "Fresh fish cooked in a spicy and tangy curry."},
|
| 31 |
{"name": "Vegetable Salad", "category": "VEGAN",
|
| 32 |
-
"image": "https://
|
| 33 |
"description": "A mix of fresh greens, tomatoes, cucumbers, and a light dressing."},
|
| 34 |
{"name": "Veg Spring Rolls", "category": "VEGAN",
|
| 35 |
-
"image": "https://
|
| 36 |
"description": "Crispy spring rolls filled with fresh vegetables."},
|
| 37 |
{"name": "Chicken Kebab", "category": "HALAL",
|
| 38 |
-
"image": "https://
|
| 39 |
"description": "Juicy chicken kebabs grilled to perfection with a mix of spices."},
|
| 40 |
{"name": "Dal Makhani", "category": "VEGAN",
|
| 41 |
-
"image": "https://
|
| 42 |
"description": "Rich and creamy black lentils slow-cooked with spices."},
|
| 43 |
{"name": "Lamb Curry", "category": "HALAL",
|
| 44 |
-
"image": "https://
|
| 45 |
"description": "Tender lamb pieces cooked in a flavorful curry sauce."},
|
| 46 |
{"name": "Mixed Veg Curry", "category": "VEGAN",
|
| 47 |
-
"image": "https://
|
| 48 |
"description": "A medley of fresh vegetables cooked in a lightly spiced curry."},
|
| 49 |
{"name": "Chicken Wings", "category": "HALAL",
|
| 50 |
-
"image": "https://
|
| 51 |
"description": "Crispy chicken wings tossed in a tangy sauce."},
|
| 52 |
{"name": "Aloo Paratha", "category": "VEGAN",
|
| 53 |
-
"image": "https://
|
| 54 |
"description": "Indian flatbread stuffed with spiced mashed potatoes."},
|
| 55 |
{"name": "Egg Curry", "category": "HALAL",
|
| 56 |
-
"image": "https://
|
| 57 |
"description": "Boiled eggs cooked in a spiced tomato gravy."},
|
| 58 |
{"name": "Chickpea Salad", "category": "VEGAN",
|
| 59 |
-
"image": "https://
|
| 60 |
"description": "A refreshing salad made with chickpeas, fresh vegetables, and herbs."}
|
| 61 |
]
|
| 62 |
|
|
|
|
|
|
|
|
|
|
| 63 |
# Function to filter dishes by category
|
| 64 |
def filter_dishes(category):
|
| 65 |
if category == "ALL":
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
+
import gradio as gr
|
| 4 |
+
|
| 5 |
menu_data = [
|
| 6 |
{"name": "Veg Burger", "category": "VEGAN",
|
| 7 |
+
"image": "https://huggingface.co/spaces/Rammohan0504/dynamic_menu/resolve/main/images/veg_burger.jpg",
|
| 8 |
"description": "A delicious vegan burger with plant-based patty, lettuce, and tomato."},
|
| 9 |
{"name": "Chicken Biryani", "category": "HALAL",
|
| 10 |
+
"image": "https://huggingface.co/spaces/Rammohan0504/dynamic_menu/resolve/main/images/chicken_biryani.jpg",
|
| 11 |
"description": "Spicy chicken biryani with aromatic basmati rice and tender chicken pieces."},
|
| 12 |
{"name": "Paneer Butter Masala", "category": "VEGAN",
|
| 13 |
+
"image": "https://huggingface.co/spaces/Rammohan0504/dynamic_menu/resolve/main/images/paneer_butter_masala.jpg",
|
| 14 |
"description": "Paneer cooked in a rich and creamy tomato-based gravy."},
|
| 15 |
{"name": "Beef Steak", "category": "HALAL",
|
| 16 |
+
"image": "https://huggingface.co/spaces/Rammohan0504/dynamic_menu/resolve/main/images/beef_steak.jpg",
|
| 17 |
"description": "Juicy beef steak served with mashed potatoes and grilled vegetables."},
|
| 18 |
{"name": "Mushroom Soup", "category": "VEGAN",
|
| 19 |
+
"image": "https://huggingface.co/spaces/Rammohan0504/dynamic_menu/resolve/main/images/mushroom_soup.jpg",
|
| 20 |
"description": "Creamy mushroom soup with fresh herbs."},
|
| 21 |
{"name": "Tandoori Chicken", "category": "HALAL",
|
| 22 |
+
"image": "https://huggingface.co/spaces/Rammohan0504/dynamic_menu/resolve/main/images/tandoori_chicken.jpg",
|
| 23 |
"description": "Grilled chicken marinated in yogurt and spices, cooked in a tandoor."},
|
| 24 |
{"name": "Grilled Veggies", "category": "VEGAN",
|
| 25 |
+
"image": "https://huggingface.co/spaces/Rammohan0504/dynamic_menu/resolve/main/images/grilled_veggies.jpg",
|
| 26 |
"description": "A healthy mix of grilled seasonal vegetables with olive oil."},
|
| 27 |
{"name": "Butter Naan", "category": "VEGAN",
|
| 28 |
+
"image": "https://huggingface.co/spaces/Rammohan0504/dynamic_menu/resolve/main/images/butter_naan.jpg",
|
| 29 |
"description": "Soft and buttery flatbread, perfect to pair with any curry."},
|
| 30 |
{"name": "Fish Curry", "category": "HALAL",
|
| 31 |
+
"image": "https://huggingface.co/spaces/Rammohan0504/dynamic_menu/resolve/main/images/fish_curry.jpg",
|
| 32 |
"description": "Fresh fish cooked in a spicy and tangy curry."},
|
| 33 |
{"name": "Vegetable Salad", "category": "VEGAN",
|
| 34 |
+
"image": "https://huggingface.co/spaces/Rammohan0504/dynamic_menu/resolve/main/images/vegetable_salad.jpg",
|
| 35 |
"description": "A mix of fresh greens, tomatoes, cucumbers, and a light dressing."},
|
| 36 |
{"name": "Veg Spring Rolls", "category": "VEGAN",
|
| 37 |
+
"image": "https://huggingface.co/spaces/Rammohan0504/dynamic_menu/resolve/main/images/veg_spring_rolls.jpg",
|
| 38 |
"description": "Crispy spring rolls filled with fresh vegetables."},
|
| 39 |
{"name": "Chicken Kebab", "category": "HALAL",
|
| 40 |
+
"image": "https://huggingface.co/spaces/Rammohan0504/dynamic_menu/resolve/main/images/chicken_kebab.jpg",
|
| 41 |
"description": "Juicy chicken kebabs grilled to perfection with a mix of spices."},
|
| 42 |
{"name": "Dal Makhani", "category": "VEGAN",
|
| 43 |
+
"image": "https://huggingface.co/spaces/Rammohan0504/dynamic_menu/resolve/main/images/dal_makhani.jpg",
|
| 44 |
"description": "Rich and creamy black lentils slow-cooked with spices."},
|
| 45 |
{"name": "Lamb Curry", "category": "HALAL",
|
| 46 |
+
"image": "https://huggingface.co/spaces/Rammohan0504/dynamic_menu/resolve/main/images/lamb_curry.jpg",
|
| 47 |
"description": "Tender lamb pieces cooked in a flavorful curry sauce."},
|
| 48 |
{"name": "Mixed Veg Curry", "category": "VEGAN",
|
| 49 |
+
"image": "https://huggingface.co/spaces/Rammohan0504/dynamic_menu/resolve/main/images/mixed_veg_curry.jpg",
|
| 50 |
"description": "A medley of fresh vegetables cooked in a lightly spiced curry."},
|
| 51 |
{"name": "Chicken Wings", "category": "HALAL",
|
| 52 |
+
"image": "https://huggingface.co/spaces/Rammohan0504/dynamic_menu/resolve/main/images/chicken_wings.jpg",
|
| 53 |
"description": "Crispy chicken wings tossed in a tangy sauce."},
|
| 54 |
{"name": "Aloo Paratha", "category": "VEGAN",
|
| 55 |
+
"image": "https://huggingface.co/spaces/Rammohan0504/dynamic_menu/resolve/main/images/aloo_paratha.jpg",
|
| 56 |
"description": "Indian flatbread stuffed with spiced mashed potatoes."},
|
| 57 |
{"name": "Egg Curry", "category": "HALAL",
|
| 58 |
+
"image": "https://huggingface.co/spaces/Rammohan0504/dynamic_menu/resolve/main/images/egg_curry.jpg",
|
| 59 |
"description": "Boiled eggs cooked in a spiced tomato gravy."},
|
| 60 |
{"name": "Chickpea Salad", "category": "VEGAN",
|
| 61 |
+
"image": "https://huggingface.co/spaces/Rammohan0504/dynamic_menu/resolve/main/images/chickpea_salad.jpg",
|
| 62 |
"description": "A refreshing salad made with chickpeas, fresh vegetables, and herbs."}
|
| 63 |
]
|
| 64 |
|
| 65 |
+
# The rest of the code remains unchanged
|
| 66 |
+
|
| 67 |
+
|
| 68 |
# Function to filter dishes by category
|
| 69 |
def filter_dishes(category):
|
| 70 |
if category == "ALL":
|