Spaces:
Runtime error
Runtime error
HEADER_INFO = """""".strip() | |
SIDEBAR_INFO = """ | |
<div class="contributors"> | |
<a class="contributor comma" href="https://huggingface.co/m3hrdadfi">Mehrdad Farahani</a> | |
<a class="contributor comma" href="https://huggingface.co/dk-crazydiv">Kartik Godawat</a> | |
<a class="contributor comma" href="https://huggingface.co/hassiahk">Haswanth Aekula</a> | |
<a class="contributor comma" href="https://huggingface.co/rays2pix">Deepak Pandian</a> | |
<a class="contributor comma" href="https://huggingface.co/nbroad">Nicholas Broad</a> | |
</div> | |
""" | |
CHEF_INFO = """ | |
<p class="strong">Welcome to our lovely restaurant! | |
<span class="d-block extra-info">(We are at your service with two of the best chefs in the world, Chef Scheherazade, | |
Chef Giovanni.)</span></p> | |
""".strip() | |
PROMPT_BOX = "Add custom ingredients here (separated by `,`): " | |
STORY = """ | |
Hello everyone, I am **Chef Transformer**, the owner of this restaurant. I was made by a group of [NLP Engineers]( | |
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. | |
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. | |
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. | |
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. | |
```text | |
[Input] | |
{food items*: separated by comma} | |
[Targets] | |
title: {TITLE} <section> | |
ingredients: {INGREDIENTS: separated by <sep>} <section> | |
directions: {DIRECTIONS: separated by <sep>}. | |
``` | |
* In the cookbooks (a.k.a dataset), the food items were referred to as NER. | |
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]( | |
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 🤗 | |
""".strip() | |