How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-classification", model="ganesh435/my-first-model")
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("ganesh435/my-first-model")
model = AutoModelForSequenceClassification.from_pretrained("ganesh435/my-first-model", device_map="auto")
Quick Links

my-first-model

This is my first Hugging Face model.

Model Description

This model is based on DistilBERT and performs sentiment analysis.

How to use

from transformers import pipeline

classifier = pipeline("sentiment-analysis", model="ganesh435/my-first-model") classifier("I love learning AI with Hugging Face!")

Notes

This model was uploaded for learning purposes.

Downloads last month
2
Safetensors
Model size
67M params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Space using ganesh435/my-first-model 1