Rammohan0504 commited on
Commit
0baff77
·
verified ·
1 Parent(s): 6a4a33f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -100,7 +100,12 @@ 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
- <div id="extras-select">""" + "".join([f'<label><input type="checkbox" value="{extra['name']}">{extra['name']} + {extra['price']}</label>' for extra in extras]) + """</div>
 
 
 
 
 
104
  <button onclick="submitPopup()">Add to Cart</button>
105
  <button onclick="closePopup()">Close</button>
106
  </div>
 
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(f"""
104
+ <div id="extras-select">
105
+ """ + "".join([f"<label><input type='checkbox' value='{extra['name']}'>{extra['name']} + {extra['price']}</label>" for extra in extras]) + """
106
+ </div>
107
+ """)
108
+
109
  <button onclick="submitPopup()">Add to Cart</button>
110
  <button onclick="closePopup()">Close</button>
111
  </div>