nbroad HF staff commited on
Commit
9446443
1 Parent(s): c0a3b00

Re-write story a bit

Browse files
Files changed (1) hide show
  1. meta.py +10 -13
meta.py CHANGED
@@ -10,32 +10,29 @@ SIDEBAR_INFO = """
10
  """
11
  CHEF_INFO = """
12
  <p class="strong">Welcome to our lovely restaurant!
13
- <span class="d-block extra-info">(We are at your service with two of our best chefs in the world, Chef Scheherazade,
14
  Chef Giovanni.)</span></p>
15
  """.strip()
16
  PROMPT_BOX = "Add custom ingredients here (separated by `,`): "
17
  STORY = """
18
- Hello everyone, I am **Chef Transformer**, the owner of this restaurant and headmaster of two other chefs **Scheherazade**, and **Giovanni**.
19
- In fact, to be more precise, I was made by a group of [NLP Engineers](
20
- https://huggingface.co/flax-community/t5-recipe-generation#team-members) so that to get your raw
21
- materials and with the help of my other associates (Scheherazade, and Giovanni) which participated in [T5 fine-tuning program (chef program)](https://huggingface.co/flax-community/t5-recipe-generation) be able to prepare food recipes for you.
22
- Before going any further, highly important to mention both cooks are capable, except that Scheherazade is *creative*
23
- while Giovanni is *meticulous*.
24
 
25
- At first, it was hard, and we had to read cookbooks to learn, whereas the books somehow consist of trivial recipes, but engineers helped us focus on essential parts of recipes for specific food items.
26
- Also, they taught us to consider the food items (known as NER), ingredients, directions, and, more importantly, food names and then map them in the following form in our skills and histories.
27
 
28
  ```text
29
  [Input]
30
- {NER: separated by comma}
31
 
32
  [Targets]
33
  title: {TITLE} <section>
34
  ingredients: {INGREDIENTS: separated by <sep>} <section>
35
  directions: {DIRECTIONS: separated by <sep>}.
36
  ```
 
37
 
38
- It was a challenging week, but we learned a lot, to be honest. Finally, we graduated with [high scores](
39
- https://huggingface.co/flax-community/t5-recipe-generation#evaluation) in our
40
- classroom and established this restaurant. Do not forget to introduce us to others.
41
  """.strip()
 
10
  """
11
  CHEF_INFO = """
12
  <p class="strong">Welcome to our lovely restaurant!
13
+ <span class="d-block extra-info">(We are at your service with two of the best chefs in the world, Chef Scheherazade,
14
  Chef Giovanni.)</span></p>
15
  """.strip()
16
  PROMPT_BOX = "Add custom ingredients here (separated by `,`): "
17
  STORY = """
18
+ Hello everyone, I am **Chef Transformer**, the owner of this restaurant. I was made by a group of [NLP Engineers](
19
+ https://huggingface.co/flax-community/t5-recipe-generation#team-members) to oversee the recipe creations of my two prodigies: **Chef Scheherazade** and **Chef Giovanni**. Both of my students participated in my rigorous culinary program, [T5 fine-tune training](https://huggingface.co/flax-community/t5-recipe-generation), to learn how to prepare exquisite cuisines from a wide variety of ingredients.
20
+ I've never been more proud of my students -- both can produce exceptional dishes but I regard Scheherazade as being *creative* while Giovanni is *meticulous*. If you give each of them the same ingredients, they'll each usually come up with something different.
 
 
 
21
 
22
+ At the start of the program the chefs read cookbooks containing thousands of recipes of varying difficulties and from cultures all over the world. The NLP engineers helped guide the learning process so that the chefs could actually learn which ingredients work well together rather than just memorizing recipes.
23
+ In fact, the main way I trained my chefs was by asking them to generate a title, a list of ingredients (including amounts!), and a list of directions after receiving just a simple list of food items.
24
 
25
  ```text
26
  [Input]
27
+ {food items*: separated by comma}
28
 
29
  [Targets]
30
  title: {TITLE} <section>
31
  ingredients: {INGREDIENTS: separated by <sep>} <section>
32
  directions: {DIRECTIONS: separated by <sep>}.
33
  ```
34
+ * In the cookbooks (a.k.a dataset), the food items were referred to as NER.
35
 
36
+ In the span of a week, my chefs went from spitting out nonsense to creating masterpieces. Their learning rate was exceptionally high and each batch of recipes was better than the last. In their final exam, they achieved [high scores](
37
+ https://huggingface.co/flax-community/t5-recipe-generation#evaluation) in a standardized industry test and established this restaurant. Please tell your friends and family about us! We create each recipe with a smile on our faces 🤗
 
38
  """.strip()