Downloads · 30 days
9
2% of all-time downloads
Nnobody/nigerian-food-gpt2
nigerian-food-gpt2 is a text generation model from Nnobody. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
This model is fine-tuned on a dataset of Nigerian food items. It can generate descriptions of Nigerian dishes, including ingredients, health information, and regional origin.
Downloads · 30 days
9
2% of all-time downloads
All-time downloads
378
Public
Parameters
124M
498 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors498 MB · 100%
From the Hugging Face model README
This model is fine-tuned on a dataset of Nigerian food items. It can generate descriptions of Nigerian dishes, including ingredients, health information, and regional origin.
This model is intended for generating descriptions of Nigerian food items. It can be used for educational purposes, menu generation, or exploring Nigerian cuisine.
The model was fine-tuned on a dataset of 100+ Nigerian food items, including information on the food's name, main ingredients, description, health rating, food class, region of origin, spice level, and price range.
'''python from transformers import GPT2LMHeadModel, GPT2Tokenizer
model = GPT2LMHeadModel.from_pretrained("your-username/nigerian-food-gpt2") tokenizer = GPT2Tokenizer.from_pretrained("your-username/nigerian-food-gpt2")
prompt = "Name: Jollof Rice" input_ids = tokenizer.encode(prompt, return_tensors="pt") output = model.generate(input_ids, max_length=200, num_return_sequences=1, no_repeat_ngram_size=2) generated_text = tokenizer.decode(output[0], skip_special_tokens=True) print(generated_text)