Spaces:
Build error
Build error
Update static/script.js
Browse files- static/script.js +2 -2
static/script.js
CHANGED
|
@@ -53,11 +53,11 @@ function handleResponse(userInput) {
|
|
| 53 |
botResponse = 'Great choice! 🍽️ Here are some vegetarian ingredients:';
|
| 54 |
fetchIngredients('vegetable');
|
| 55 |
return;
|
| 56 |
-
} else if (lastMessage.includes('
|
| 57 |
conversation.push({ role: 'user', message: 'Non-Vegetarian' });
|
| 58 |
console.log("Food preference selected: Non-Vegetarian");
|
| 59 |
botResponse = 'Great choice! 🍽️ Here are some non-vegetarian ingredients:';
|
| 60 |
-
fetchIngredients('
|
| 61 |
return;
|
| 62 |
} else if (lastMessage.includes('yes') && selectedMenuItem) {
|
| 63 |
botResponse = 'Here are some ingredients to customize your dish:';
|
|
|
|
| 53 |
botResponse = 'Great choice! 🍽️ Here are some vegetarian ingredients:';
|
| 54 |
fetchIngredients('vegetable');
|
| 55 |
return;
|
| 56 |
+
} else if (lastMessage.includes('Non-Veg')) {
|
| 57 |
conversation.push({ role: 'user', message: 'Non-Vegetarian' });
|
| 58 |
console.log("Food preference selected: Non-Vegetarian");
|
| 59 |
botResponse = 'Great choice! 🍽️ Here are some non-vegetarian ingredients:';
|
| 60 |
+
fetchIngredients('Non-Veg');
|
| 61 |
return;
|
| 62 |
} else if (lastMessage.includes('yes') && selectedMenuItem) {
|
| 63 |
botResponse = 'Here are some ingredients to customize your dish:';
|