Yaswanth56 commited on
Commit
7ceb6d2
·
verified ·
1 Parent(s): bc9b757

Update static/script.js

Browse files
Files changed (1) hide show
  1. static/script.js +3 -5
static/script.js CHANGED
@@ -51,11 +51,9 @@ function handleResponse(userInput) {
51
  conversation.push({ role: 'user', message: 'Non-Vegetarian' });
52
  console.log("Food preference selected: Non-Vegetarian");
53
  botResponse = 'Great choice! 🍽️ Please select a non-vegetarian option:';
54
- options = [
55
- { text: 'Chicken', class: '' },
56
- { text: 'Beef', class: '' },
57
- { text: 'Lamb', class: '' }
58
- ];
59
  }
60
  else if (lastMessage.includes('vegetarian')) {
61
  conversation.push({ role: 'user', message: 'Vegetarian' });
 
51
  conversation.push({ role: 'user', message: 'Non-Vegetarian' });
52
  console.log("Food preference selected: Non-Vegetarian");
53
  botResponse = 'Great choice! 🍽️ Please select a non-vegetarian option:';
54
+ fetchIngredients('non-vegetarian');
55
+ return;
56
+
 
 
57
  }
58
  else if (lastMessage.includes('vegetarian')) {
59
  conversation.push({ role: 'user', message: 'Vegetarian' });