Spaces:
Runtime error
Runtime error
Update templates/customdish.html
Browse files
templates/customdish.html
CHANGED
|
@@ -462,15 +462,7 @@
|
|
| 462 |
let options = [];
|
| 463 |
|
| 464 |
// If user has already selected food type, proceed without repeating the question
|
| 465 |
-
if (
|
| 466 |
-
// Check if it's the initial greeting with the food type preference
|
| 467 |
-
if (userInput === "vegetarian" || userInput === "non-vegetarian") {
|
| 468 |
-
botResponse = `Nice to meet you, ${userInput}! 😊 Let's create your perfect meal!`;
|
| 469 |
-
options = [
|
| 470 |
-
{ text: 'Go Back', class: 'gray' }
|
| 471 |
-
];
|
| 472 |
-
}
|
| 473 |
-
} else if (lastMessage.includes('non-vegetarian')) {
|
| 474 |
conversation.push({ role: 'user', message: 'Non-Vegetarian' });
|
| 475 |
console.log("Food preference selected: Non-Vegetarian");
|
| 476 |
botResponse = 'Great choice! 🍽️ Please select a non-vegetarian option:';
|
|
|
|
| 462 |
let options = [];
|
| 463 |
|
| 464 |
// If user has already selected food type, proceed without repeating the question
|
| 465 |
+
if (lastMessage.includes('non-vegetarian')) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 466 |
conversation.push({ role: 'user', message: 'Non-Vegetarian' });
|
| 467 |
console.log("Food preference selected: Non-Vegetarian");
|
| 468 |
botResponse = 'Great choice! 🍽️ Please select a non-vegetarian option:';
|