Rammohan0504 commited on
Commit
80dcc51
·
verified ·
1 Parent(s): 90d33f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -189,8 +189,8 @@ with gr.Blocks() as demo:
189
  alert(dishName + " with " + spiceLevel + " spice level and extras: " + selectedExtras + " has been added to the cart!");
190
  }
191
 
192
- const menuItems = document.querySelectorAll('.menu-item');
193
- menuItems.forEach(item => {item.addEventListener('click', function(event) {showPopup(event, item.getAttribute('data-name'));
194
  });
195
  });
196
  </script>
 
189
  alert(dishName + " with " + spiceLevel + " spice level and extras: " + selectedExtras + " has been added to the cart!");
190
  }
191
 
192
+ const menuItems = document.querySelectorAll(display_dishes(category));
193
+ display_dishes.forEach(item => {item.addEventListener('click', function(event) {showPopup(event, item.getAttribute('data-name'));
194
  });
195
  });
196
  </script>