Spaces:
Sleeping
Sleeping
Update static/script.js
Browse files- static/script.js +0 -3
static/script.js
CHANGED
|
@@ -67,9 +67,6 @@ function handleResponse(userInput) {
|
|
| 67 |
{ text: 'Keto', class: '' },
|
| 68 |
{ text: 'Halal', class: '' }
|
| 69 |
];
|
| 70 |
-
} else if (lastMessage.includes('low carb') || lastMessage.includes('dairy-free') || lastMessage.includes('keto') || lastMessage.includes('halal') || lastMessage.includes('gluten-free') || lastMessage.includes('vegan') || lastMessage.includes('vegetarian')) {
|
| 71 |
-
fetchIngredients(lastMessage); // Handle ingredient fetch based on dietary preference
|
| 72 |
-
return; // Exit early to fetch ingredients
|
| 73 |
}
|
| 74 |
|
| 75 |
addMessage('bot', botResponse);
|
|
|
|
| 67 |
{ text: 'Keto', class: '' },
|
| 68 |
{ text: 'Halal', class: '' }
|
| 69 |
];
|
|
|
|
|
|
|
|
|
|
| 70 |
}
|
| 71 |
|
| 72 |
addMessage('bot', botResponse);
|