Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -100,7 +100,14 @@ with gr.Blocks() as demo:
|
|
| 100 |
<label>Spice Level:</label>
|
| 101 |
<select id="spice-select">""" + "".join([f'<option>{spice}</option>' for spice in spice_levels]) + """</select>
|
| 102 |
<label>Extras:</label>
|
| 103 |
-
gr.HTML(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 104 |
|
| 105 |
<button onclick="submitPopup()">Add to Cart</button>
|
| 106 |
<button onclick="closePopup()">Close</button>
|
|
|
|
| 100 |
<label>Spice Level:</label>
|
| 101 |
<select id="spice-select">""" + "".join([f'<option>{spice}</option>' for spice in spice_levels]) + """</select>
|
| 102 |
<label>Extras:</label>
|
| 103 |
+
gr.HTML(
|
| 104 |
+
f"""
|
| 105 |
+
<div id="extras-select">
|
| 106 |
+
""" + "".join([f"<label><input type='checkbox' value='{extra['name']}'>{extra['name']} + {extra['price']}</label>" for extra in extras]) + """
|
| 107 |
+
</div>
|
| 108 |
+
"""
|
| 109 |
+
)
|
| 110 |
+
|
| 111 |
|
| 112 |
<button onclick="submitPopup()">Add to Cart</button>
|
| 113 |
<button onclick="closePopup()">Close</button>
|