Instructions to use everyone-free/hi-bye with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use everyone-free/hi-bye with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("everyone-free/hi-bye") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
hello-or-output
A tiny classifier for a toy chatbot:
| You send | It replies |
|---|---|
a greeting, e.g. hi or hello how are you |
hello |
something about computers, e.g. computer or my laptop is slow |
output |
| anything else | I don't understand |
How it works
- all-MiniLM-L6-v2 turns the text into an embedding (a list of numbers that captures its meaning).
- A logistic regression (
classifier.joblib) predictsgreeting,computerorother. handler.pymaps that label to the reply.
It was trained on a small set of hand-written example sentences. It is a demo, not a production model.
Call the endpoint
curl https://YOUR-ENDPOINT-URL \
-H "Authorization: Bearer $HF_TOKEN" \
-H "Content-Type: application/json" \
-d '{"inputs": "hello how are you"}'
Example response:
{"reply": "hello", "label": "greeting", "score": 0.95}