Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -82,14 +82,16 @@ with gr.Blocks() as demo:
|
|
| 82 |
dish_display = gr.HTML(value=display_dishes("ALL"))
|
| 83 |
|
| 84 |
# Dish Details Pop-up
|
| 85 |
-
|
| 86 |
-
|
|
|
|
| 87 |
dish_image = gr.Image(label="Dish Image", height=200, width=200)
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
|
|
|
| 93 |
|
| 94 |
place_order_btn = gr.Button("Place Order")
|
| 95 |
order_status = gr.Textbox(label="Order Status", interactive=False)
|
|
|
|
| 82 |
dish_display = gr.HTML(value=display_dishes("ALL"))
|
| 83 |
|
| 84 |
# Dish Details Pop-up
|
| 85 |
+
popup = gr.Group(visible=False)
|
| 86 |
+
with popup:
|
| 87 |
+
with gr.Row():
|
| 88 |
dish_image = gr.Image(label="Dish Image", height=200, width=200)
|
| 89 |
+
with gr.Column():
|
| 90 |
+
dish_name = gr.Textbox(label="Dish Name", interactive=False)
|
| 91 |
+
dish_description = gr.Textbox(label="Description", interactive=False)
|
| 92 |
+
spice_dropdown = gr.Radio(label="Select Spice Level", choices=spice_options, value="🌶 Medium")
|
| 93 |
+
portion_dropdown = gr.Radio(label="Select Portion Size", choices=portion_options, value="🍽 Medium")
|
| 94 |
+
close_popup = gr.Button("Close")
|
| 95 |
|
| 96 |
place_order_btn = gr.Button("Place Order")
|
| 97 |
order_status = gr.Textbox(label="Order Status", interactive=False)
|