nagasurendra commited on
Commit
2f0ba17
·
verified ·
1 Parent(s): fa8ca20

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -103,7 +103,8 @@ def app():
103
 
104
  # View Cart Page
105
  cart_page = gr.HTML(value="Your cart is empty.")
106
- gr.Button("View Cart").click(fn=redirect_to_cart, outputs=cart_page)
 
107
 
108
  # JavaScript for modal and cart behavior
109
  modal_and_cart_js = """
@@ -218,13 +219,13 @@ def app():
218
 
219
  # Interactivity
220
  selected_preference.change(filter_menu, inputs=[selected_preference], outputs=[menu_output])
221
- gr.Button("View Cart").click(fn=redirect_to_cart, outputs=cart_page)
222
 
223
  # Layout
224
  gr.Row([selected_preference])
225
  gr.Row(menu_output)
226
  gr.Row(cart_output)
227
  gr.Row(cart_page)
 
228
  gr.Row(modal_window)
229
  gr.HTML(modal_and_cart_js)
230
 
 
103
 
104
  # View Cart Page
105
  cart_page = gr.HTML(value="Your cart is empty.")
106
+ view_cart_button = gr.Button("View Cart")
107
+ view_cart_button.click(fn=redirect_to_cart, outputs=cart_page)
108
 
109
  # JavaScript for modal and cart behavior
110
  modal_and_cart_js = """
 
219
 
220
  # Interactivity
221
  selected_preference.change(filter_menu, inputs=[selected_preference], outputs=[menu_output])
 
222
 
223
  # Layout
224
  gr.Row([selected_preference])
225
  gr.Row(menu_output)
226
  gr.Row(cart_output)
227
  gr.Row(cart_page)
228
+ gr.Row([view_cart_button])
229
  gr.Row(modal_window)
230
  gr.HTML(modal_and_cart_js)
231