Rammohan0504 commited on
Commit
f7cacfa
·
verified ·
1 Parent(s): 55e9d0b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -148,7 +148,7 @@ popup_html = """
148
 
149
  # Generate dish cards
150
  def display_dishes(category):
151
- html_content = "<div style='display: flex; flex-direction: column; gap: 20px; min-height:100vh; overflow: hidden; width: 80%; box-sizing: border-box; margin: 0;'>"
152
  for dish in menu_data:
153
  if category == "ALL" or dish["category"] == category:
154
  html_content += f"""
@@ -171,7 +171,7 @@ def display_dishes(category):
171
  return html_content
172
 
173
  # Main Gradio App
174
- with gr.Blocks() as demo:
175
  gr.HTML(popup_html) # Add the popup container and overlay
176
  gr.HTML(popup_js) # Add the JavaScript
177
 
 
148
 
149
  # Generate dish cards
150
  def display_dishes(category):
151
+ html_content = "<div style='display: flex; flex-direction: column; gap: 20px; min-height:100vh; padding-bottom: 20px; box-sizing: border-box;'>"
152
  for dish in menu_data:
153
  if category == "ALL" or dish["category"] == category:
154
  html_content += f"""
 
171
  return html_content
172
 
173
  # Main Gradio App
174
+ with gr.Blocks (css="#dish-container {min-height: 100vh; overflow-y: auto;}") as demo:
175
  gr.HTML(popup_html) # Add the popup container and overlay
176
  gr.HTML(popup_js) # Add the JavaScript
177