nagasurendra commited on
Commit
f2d428b
·
verified ·
1 Parent(s): 31c4ef1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
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("""