Spaces:
Build error
Build error
Update static/script.js
Browse files- 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 |
-
|
| 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
|