Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -347,6 +347,15 @@ def app():
|
|
| 347 |
menu_output = gr.HTML(value="Menu will load here dynamically")
|
| 348 |
cart_output = gr.HTML(value="Your cart is empty.", elem_id="floating-cart")
|
| 349 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 350 |
|
| 351 |
# Modal window
|
| 352 |
modal_window = gr.HTML("""
|
|
|
|
| 347 |
menu_output = gr.HTML(value="Menu will load here dynamically")
|
| 348 |
cart_output = gr.HTML(value="Your cart is empty.", elem_id="floating-cart")
|
| 349 |
|
| 350 |
+
# Ensure final_order_output is only used within cart_section
|
| 351 |
+
with gr.Column(visible=False) as cart_section:
|
| 352 |
+
gr.Markdown("### Cart Details")
|
| 353 |
+
cart_details_output = gr.HTML(value="Your cart details will appear here.")
|
| 354 |
+
submit_order_button = gr.Button("Submit Order")
|
| 355 |
+
final_order_output = gr.HTML(value="", elem_id="final-order")
|
| 356 |
+
back_to_menu_button = gr.Button("Back to Menu")
|
| 357 |
+
|
| 358 |
+
|
| 359 |
|
| 360 |
# Modal window
|
| 361 |
modal_window = gr.HTML("""
|