File size: 901 Bytes
873849b
 
034a48f
 
 
 
 
 
 
873849b
034a48f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
873849b
034a48f
 
20557ee
034a48f
873849b
034a48f
873849b
034a48f
 
 
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
37
38
39
40
import gradio as gr

# Define menu items
menu_items = [
    {"name": "Chicken Butter Masala"},
    {"name": "Chicken Biryani"},
    {"name": "Dosa"},
    {"name": "Aloo Curry"},
]

# Create the Gradio interface
def render_menu():
    with gr.Blocks(css="""
    .menu-item {
        border: 2px solid black;
        border-radius: 5px;
        padding: 15px;
        margin: 10px 0;
        font-size: 18px;
        font-weight: bold;
        text-align: center;
        background-color: #fff;
    }
    .menu-container {
        margin-top: 20px;
    }
    """) as demo:
        gr.Markdown("# Menu")

        with gr.Column(elem_id="menu-container"):
            for item in menu_items:
                with gr.Row(elem_classes=["menu-item"]):  # Use elem_classes for custom styling
                    gr.Markdown(item["name"])

    return demo

# Render the app
demo = render_menu()
demo.launch()