You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -427,7 +427,7 @@ To further improve it, we want to add the following:
427
427
-**Filter out ingredients**. We want to be able to filter out ingredients we don't like or are allergic to. To accomplish this change, we can edit our existing prompt and add a filter condition to the end of it like so:
428
428
429
429
```python
430
-
filter=input("Filter (for example, vegetarian, vegan, or gluten-free: ")
430
+
filter=input("Filter (for example, vegetarian, vegan, or gluten-free): ")
431
431
432
432
prompt =f"Show me {no_recipes} recipes for a dish with the following ingredients: {ingredients}. Per recipe, list all the ingredients used, no {filter}"
433
433
```
@@ -437,9 +437,9 @@ To further improve it, we want to add the following:
437
437
An example input of running the program can now look like so:
438
438
439
439
```output
440
-
No of recipes (for example, 5: 3
441
-
List of ingredients (for example, chicken, potatoes, and carrots: onion,milk
442
-
Filter (for example, vegetarian, vegan, or gluten-free: no milk
440
+
No of recipes (for example, 5): 3
441
+
List of ingredients (for example, chicken, potatoes, and carrots): onion,milk
442
+
Filter (for example, vegetarian, vegan, or gluten-free): no milk
443
443
444
444
1. French Onion Soup
445
445
@@ -539,9 +539,9 @@ To further improve it, we want to add the following:
539
539
Taking this code for a spin, we now arrive at the following output:
540
540
541
541
```output
542
-
No of recipes (for example, 5: 2
543
-
List of ingredients (for example, chicken, potatoes, and carrots: apple,flour
544
-
Filter (for example, vegetarian, vegan, or gluten-free: sugar
542
+
No of recipes (for example, 5): 2
543
+
List of ingredients (for example, chicken, potatoes, and carrots): apple,flour
544
+
Filter (for example, vegetarian, vegan, or gluten-free): sugar
545
545
546
546
547
547
-Apple and flour pancakes: 1 cup flour, 1/2 tsp baking powder, 1/2 tsp baking soda, 1/4 tsp salt, 1 tbsp sugar, 1 egg, 1 cup buttermilk or sour milk, 1/4 cup melted butter, 1 Granny Smith apple, peeled and grated
0 commit comments