geethareddy commited on
Commit
87901b0
Β·
verified Β·
1 Parent(s): 757126a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -1,13 +1,16 @@
1
  import gradio as gr
2
  from components.menu import generate_menu
 
3
 
4
  def main():
5
  with gr.Blocks(css="static/css/styles.css") as app:
6
  gr.Markdown("# Restaurant Menu - Indian & Chinese Cuisine πŸœπŸ›")
 
 
7
  menu_section = generate_menu()
8
- gr.Row(menu_section) # Add the menu section to the app
9
 
10
- app.launch(share=True)
11
 
12
  if __name__ == "__main__":
13
  main()
 
1
  import gradio as gr
2
  from components.menu import generate_menu
3
+ from components.popup_card import generate_popup_card
4
 
5
  def main():
6
  with gr.Blocks(css="static/css/styles.css") as app:
7
  gr.Markdown("# Restaurant Menu - Indian & Chinese Cuisine πŸœπŸ›")
8
+
9
+ # Generate the menu dynamically
10
  menu_section = generate_menu()
11
+ app.append(menu_section)
12
 
13
+ app.launch(share=True) # Allow external access
14
 
15
  if __name__ == "__main__":
16
  main()