SathvikGanta commited on
Commit
106c3e5
·
verified ·
1 Parent(s): 4c41e32

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -31,10 +31,13 @@ with gr.Blocks(css="styles.css") as app:
31
  elem_id=f"food-{food_name.replace(' ', '-').lower()}",
32
  interactive=True,
33
  ).click(
34
- lambda x=food_name: modal.show(display_card(x)),
35
  inputs=None,
36
  outputs=[]
37
  )
38
 
 
 
 
39
  # Launch the app
40
  app.launch()
 
31
  elem_id=f"food-{food_name.replace(' ', '-').lower()}",
32
  interactive=True,
33
  ).click(
34
+ lambda x=food_name: modal.show(content=display_card(x)),
35
  inputs=None,
36
  outputs=[]
37
  )
38
 
39
+ # Add the modal to the app
40
+ modal.render()
41
+
42
  # Launch the app
43
  app.launch()