Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -401,6 +401,7 @@ def app():
|
|
401 |
with gr.Column(visible=False, elem_id="cart-section") as cart_section:
|
402 |
gr.Markdown("### Cart Page")
|
403 |
cart_output = gr.HTML(value="Your cart is empty.", elem_id="floating-cart")
|
|
|
404 |
back_to_menu_button = gr.Button("Back to Menu")
|
405 |
|
406 |
with gr.Column(visible=False, elem_id="final-order-section") as final_order_section:
|
@@ -454,6 +455,7 @@ def app():
|
|
454 |
outputs=[menu_section, cart_section],
|
455 |
)
|
456 |
|
|
|
457 |
# Navigate to Final Order Page
|
458 |
submitCart_button.click(
|
459 |
lambda: (gr.update(visible=False), gr.update(visible=True)),
|
@@ -461,6 +463,7 @@ def app():
|
|
461 |
)
|
462 |
|
463 |
|
|
|
464 |
return demo
|
465 |
|
466 |
if __name__ == "__main__":
|
|
|
401 |
with gr.Column(visible=False, elem_id="cart-section") as cart_section:
|
402 |
gr.Markdown("### Cart Page")
|
403 |
cart_output = gr.HTML(value="Your cart is empty.", elem_id="floating-cart")
|
404 |
+
submitCart_button = gr.Button("Submit Cart")
|
405 |
back_to_menu_button = gr.Button("Back to Menu")
|
406 |
|
407 |
with gr.Column(visible=False, elem_id="final-order-section") as final_order_section:
|
|
|
455 |
outputs=[menu_section, cart_section],
|
456 |
)
|
457 |
|
458 |
+
# Navigate to Final Order Page
|
459 |
# Navigate to Final Order Page
|
460 |
submitCart_button.click(
|
461 |
lambda: (gr.update(visible=False), gr.update(visible=True)),
|
|
|
463 |
)
|
464 |
|
465 |
|
466 |
+
|
467 |
return demo
|
468 |
|
469 |
if __name__ == "__main__":
|