Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -195,6 +195,7 @@ def filter_menu(preference):
|
|
195 |
|
196 |
return html_content
|
197 |
|
|
|
198 |
def create_modal_window():
|
199 |
add_ons = load_add_ons_from_salesforce()
|
200 |
add_ons_html = ""
|
@@ -227,7 +228,6 @@ def create_modal_window():
|
|
227 |
</div>
|
228 |
"""
|
229 |
return modal_html
|
230 |
-
|
231 |
# JavaScript for Modal and Cart
|
232 |
def modal_js():
|
233 |
modal_script = """
|
@@ -383,4 +383,4 @@ with gr.Blocks() as app:
|
|
383 |
|
384 |
preference.change(lambda pref: filter_menu(pref), [preference], menu_output)
|
385 |
|
386 |
-
app.launch()
|
|
|
195 |
|
196 |
return html_content
|
197 |
|
198 |
+
# Modal Window to display item details and add-ons
|
199 |
def create_modal_window():
|
200 |
add_ons = load_add_ons_from_salesforce()
|
201 |
add_ons_html = ""
|
|
|
228 |
</div>
|
229 |
"""
|
230 |
return modal_html
|
|
|
231 |
# JavaScript for Modal and Cart
|
232 |
def modal_js():
|
233 |
modal_script = """
|
|
|
383 |
|
384 |
preference.change(lambda pref: filter_menu(pref), [preference], menu_output)
|
385 |
|
386 |
+
app.launch()
|