Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -285,6 +285,7 @@ button {
|
|
| 285 |
}
|
| 286 |
</script>
|
| 287 |
"""
|
|
|
|
| 288 |
def app():
|
| 289 |
with gr.Blocks() as demo:
|
| 290 |
# Login Page
|
|
@@ -320,7 +321,11 @@ def app():
|
|
| 320 |
menu_output = gr.HTML(value=filter_menu("All"))
|
| 321 |
|
| 322 |
# Button to open cart modal
|
| 323 |
-
view_cart_button = gr.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 324 |
|
| 325 |
# Original Modal window for items
|
| 326 |
modal_window = gr.HTML("""
|
|
@@ -439,11 +444,6 @@ def app():
|
|
| 439 |
outputs=[login_section, signup_section],
|
| 440 |
)
|
| 441 |
|
| 442 |
-
view_cart_button.click(
|
| 443 |
-
lambda: (gr.update(visible=False), gr.update(visible=True)),
|
| 444 |
-
outputs=[menu_section, cart_section],
|
| 445 |
-
)
|
| 446 |
-
|
| 447 |
back_to_menu_button.click(
|
| 448 |
lambda: (gr.update(visible=True), gr.update(visible=False)),
|
| 449 |
outputs=[menu_section, cart_section],
|
|
@@ -453,3 +453,6 @@ def app():
|
|
| 453 |
|
| 454 |
if __name__ == "__main__":
|
| 455 |
app().launch()
|
|
|
|
|
|
|
|
|
|
|
|
| 285 |
}
|
| 286 |
</script>
|
| 287 |
"""
|
| 288 |
+
|
| 289 |
def app():
|
| 290 |
with gr.Blocks() as demo:
|
| 291 |
# Login Page
|
|
|
|
| 321 |
menu_output = gr.HTML(value=filter_menu("All"))
|
| 322 |
|
| 323 |
# Button to open cart modal
|
| 324 |
+
view_cart_button = gr.HTML(
|
| 325 |
+
"""
|
| 326 |
+
<button id="view-cart-button" style="background-color: #007bff; color: white; border: none; padding: 10px 20px; font-size: 14px; border-radius: 5px; cursor: pointer;">View Cart</button>
|
| 327 |
+
"""
|
| 328 |
+
)
|
| 329 |
|
| 330 |
# Original Modal window for items
|
| 331 |
modal_window = gr.HTML("""
|
|
|
|
| 444 |
outputs=[login_section, signup_section],
|
| 445 |
)
|
| 446 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 447 |
back_to_menu_button.click(
|
| 448 |
lambda: (gr.update(visible=True), gr.update(visible=False)),
|
| 449 |
outputs=[menu_section, cart_section],
|
|
|
|
| 453 |
|
| 454 |
if __name__ == "__main__":
|
| 455 |
app().launch()
|
| 456 |
+
|
| 457 |
+
|
| 458 |
+
|