Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -98,7 +98,7 @@ def app():
|
|
| 98 |
def redirect_to_cart():
|
| 99 |
return update_cart()
|
| 100 |
|
| 101 |
-
cart_page = gr.HTML("
|
| 102 |
|
| 103 |
# Floating cart display
|
| 104 |
cart_output = gr.HTML(value="Your cart is empty.", elem_id="floating-cart")
|
|
@@ -206,7 +206,7 @@ def app():
|
|
| 206 |
|
| 207 |
# Interactivity
|
| 208 |
selected_preference.change(filter_menu, inputs=[selected_preference], outputs=[menu_output])
|
| 209 |
-
gr.Button("View Cart").click(
|
| 210 |
|
| 211 |
# Layout
|
| 212 |
gr.Row([selected_preference])
|
|
|
|
| 98 |
def redirect_to_cart():
|
| 99 |
return update_cart()
|
| 100 |
|
| 101 |
+
cart_page = gr.HTML(value="Your cart is empty.")
|
| 102 |
|
| 103 |
# Floating cart display
|
| 104 |
cart_output = gr.HTML(value="Your cart is empty.", elem_id="floating-cart")
|
|
|
|
| 206 |
|
| 207 |
# Interactivity
|
| 208 |
selected_preference.change(filter_menu, inputs=[selected_preference], outputs=[menu_output])
|
| 209 |
+
gr.Button("View Cart").click(fn=update_cart, outputs=cart_page)
|
| 210 |
|
| 211 |
# Layout
|
| 212 |
gr.Row([selected_preference])
|