Skip to content

Commit 7190c54

Browse files
committed
fix: added missing closing brackets
1 parent b8c62ea commit 7190c54

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

06-text-generation-apps/README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -399,9 +399,9 @@ Now that we have played out a scenario, let's write code to match the demonstrat
399399
1. Let's change the code in the following way:
400400

401401
```python
402-
no_recipes = input("No of recipes (for example, 5: ")
402+
no_recipes = input("No of recipes (for example, 5): ")
403403

404-
ingredients = input("List of ingredients (for example, chicken, potatoes, and carrots: ")
404+
ingredients = input("List of ingredients (for example, chicken, potatoes, and carrots): ")
405405

406406
# interpolate the number of recipes into the prompt an ingredients
407407
prompt = f"Show me {no_recipes} recipes for a dish with the following ingredients: {ingredients}. Per recipe, list all the ingredients used"
@@ -410,8 +410,8 @@ Now that we have played out a scenario, let's write code to match the demonstrat
410410
Taking the code for a test run, could look like this:
411411

412412
```output
413-
No of recipes (for example, 5: 3
414-
List of ingredients (for example, chicken, potatoes, and carrots: milk,strawberries
413+
No of recipes (for example, 5): 3
414+
List of ingredients (for example, chicken, potatoes, and carrots): milk,strawberries
415415
416416
-Strawberry milk shake: milk, strawberries, sugar, vanilla extract, ice cubes
417417
-Strawberry shortcake: milk, flour, baking powder, sugar, salt, unsalted butter, strawberries, whipped cream
@@ -427,7 +427,7 @@ To further improve it, we want to add the following:
427427
- **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:
428428

429429
```python
430-
filter = input("Filter (for example, vegetarian, vegan, or gluten-free: ")
430+
filter = input("Filter (for example, vegetarian, vegan, or gluten-free): ")
431431

432432
prompt = f"Show me {no_recipes} recipes for a dish with the following ingredients: {ingredients}. Per recipe, list all the ingredients used, no {filter}"
433433
```
@@ -437,9 +437,9 @@ To further improve it, we want to add the following:
437437
An example input of running the program can now look like so:
438438

439439
```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
443443
444444
1. French Onion Soup
445445
@@ -539,9 +539,9 @@ To further improve it, we want to add the following:
539539
Taking this code for a spin, we now arrive at the following output:
540540

541541
```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
545545

546546

547547
-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

Comments
 (0)