Yaswanth56 commited on
Commit
5b16f49
·
verified ·
1 Parent(s): 76a06c8

Update static/script.js

Browse files
Files changed (1) hide show
  1. static/script.js +1 -6
static/script.js CHANGED
@@ -61,12 +61,7 @@ function handleResponse(userInput) {
61
  botResponse = 'Great choice! 🍽️ Here are some vegetarian ingredients:';
62
  fetchIngredients('vegetarian');
63
  return;
64
- } else if (lastMessage.includes('chicken') || lastMessage.includes('beef') || lastMessage.includes('lamb')) {
65
- conversation.push({ role: 'user', message: lastMessage });
66
- console.log(`Non-veg option selected: ${lastMessage}`);
67
- botResponse = `Great! Here are some ${lastMessage} ingredients available:`;
68
- fetchIngredients(lastMessage.toLowerCase());
69
- return;
70
  } else if (lastMessage.includes('yes') && selectedMenuItem) {
71
  botResponse = 'Here are some ingredients to customize your dish:';
72
  fetchIngredients('non-vegetarian'); // Fetch non-veg ingredients for customization
 
61
  botResponse = 'Great choice! 🍽️ Here are some vegetarian ingredients:';
62
  fetchIngredients('vegetarian');
63
  return;
64
+
 
 
 
 
 
65
  } else if (lastMessage.includes('yes') && selectedMenuItem) {
66
  botResponse = 'Here are some ingredients to customize your dish:';
67
  fetchIngredients('non-vegetarian'); // Fetch non-veg ingredients for customization