Rammohan0504 commited on
Commit
82665a9
·
verified ·
1 Parent(s): f6128d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
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(f"""<div id="extras-select">""" + "".join([f"<label><input type='checkbox' value='{extra[\"name\"]}'>{extra[\"name\"]} + {extra[\"price\"]}</label>" for extra in extras]) + """</div>""")
 
 
 
 
 
 
 
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>