Spaces:
Sleeping
Sleeping
Update app.py
Browse files147 unmodified lines14814915015115215315416 unmodified lines171172173174175176177147 unmodified lines# Generate dish cardsdef display_dishes(category):html_content = "<div style='display: flex; flex-direction: column; gap: 20px; min-height:100vh; overflow: hidden; width: 80%; box-sizing: border-box; margin: 0;'>"for dish in menu_data:if category == "ALL" or dish["category"] == category:html_content += f"""16 unmodified linesreturn html_content# Main Gradio Appwith gr.Blocks() as demo:gr.HTML(popup_html) # Add the popup container and overlaygr.HTML(popup_js) # Add the JavaScript147 unmodified lines14814915015115215315416 unmodified lines171172173174175176177147 unmodified lines# Generate dish cardsdef display_dishes(category):html_content = "<div style='display: flex; flex-direction: column; gap: 20px; min-height:100vh; padding-bottom: 20px; box-sizing: border-box;'>"for dish in menu_data:if category == "ALL" or dish["category"] == category:html_content += f"""16 unmodified linesreturn html_content# Main Gradio Appwith gr.Blocks (css="#dish-container {min-height: 100vh; overflow-y: auto;}") as demo:gr.HTML(popup_html) # Add the popup container and overlaygr.HTML(popup_js) # Add the JavaScript
app.py+2-2