Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -125,7 +125,14 @@ def app():
|
|
125 |
|
126 |
# Submit button for the cart
|
127 |
submit_button = gr.Button("Submit Order")
|
128 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
|
130 |
# Submit button action
|
131 |
submit_button.click(fn=submit_cart, inputs=[], outputs=order_page)
|
@@ -249,7 +256,6 @@ def app():
|
|
249 |
gr.Row(menu_output)
|
250 |
gr.Row(cart_output)
|
251 |
gr.Row([submit_button])
|
252 |
-
gr.Row(order_page)
|
253 |
gr.Row(modal_window)
|
254 |
gr.HTML(modal_and_cart_js)
|
255 |
|
|
|
125 |
|
126 |
# Submit button for the cart
|
127 |
submit_button = gr.Button("Submit Order")
|
128 |
+
|
129 |
+
# New order page
|
130 |
+
order_page = gr.Interface(
|
131 |
+
fn=submit_cart,
|
132 |
+
inputs=[],
|
133 |
+
outputs="html",
|
134 |
+
live=True,
|
135 |
+
)
|
136 |
|
137 |
# Submit button action
|
138 |
submit_button.click(fn=submit_cart, inputs=[], outputs=order_page)
|
|
|
256 |
gr.Row(menu_output)
|
257 |
gr.Row(cart_output)
|
258 |
gr.Row([submit_button])
|
|
|
259 |
gr.Row(modal_window)
|
260 |
gr.HTML(modal_and_cart_js)
|
261 |
|