Downloads Β· 30 days
11
9% of all-time downloads
divoishim/mealera
mealera is a text classification model from divoishim. Use it when you need a label for a piece of text. The card lists the license as apache-2.0.
Downloads Β· 30 days
11
9% of all-time downloads
All-time downloads
123
Public
Parameters
67M
268 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors268 MB Β· 100%
From the Hugging Face model README
Mealera is a state-of-the-art conversational AI model designed to understand, classify, and respond to queries about Nigerian food, meal planning, health, shopping, and cultural dietary needs. Built on DistilBERT and fine-tuned on thousands of real-world, culturally rich conversations, Mealera empowers digital food platforms, health apps, and smart assistants to deliver context-aware, locally relevant, and health-conscious experiences for users in Nigeria and beyond.
from transformers import AutoModelForSequenceClassification, AutoTokenizer
model = AutoModelForSequenceClassification.from_pretrained("divoishim/mealera")
tokenizer = AutoTokenizer.from_pretrained("divoishim/mealera")
from huggingface_hub import hf_hub_download
import pickle
label_path = hf_hub_download(repo_id="divoishim/mealera", filename="label_encoder.pkl")
with open(label_path, "rb") as f:
label_encoder = pickle.load(f)
import torch
query = "What can I cook for a family of four with 2000 naira?"
inputs = tokenizer(query, return_tensors="pt", truncation=True, padding=True)
with torch.no_grad():
outputs = model(**inputs)
logits = outputs.logits
predicted_class_id = logits.argmax().item()
print("Predicted context:", label_encoder.inverse_transform([predicted_class_id])[0])
The model predicts one of several context labels, including:
recipe_recommendation: Suggesting recipes or meal ideascasual_chat: General conversation or greetingsgreeting: Salutations and opening messagesvendor_recommendation: Finding food vendors or marketsbudget_meal: Affordable meal suggestionshealth_advice: Nutrition and health-related queriesdietary_restrictions: Special diets (e.g., allergies, intolerances)shopping_list: Generating shopping listsmeal_plan: Weekly/daily meal planningallergy_concern: Allergy and food intolerance questions(See label_encoder.pkl for the full list and mapping.)
If you use Mealera in your research or product, please cite:
@misc{mealera2025,
title={Mealera: Nigerian Food & Wellness Conversation Model},
author={Divine Oshim},
year={2025},
howpublished={\url{https://huggingface.co/divoishim/mealera}}
}
Open an issue on the Hugging Face repo or email [email protected].
Mealera: Empowering food, health, and cultureβone conversation at a time.