Instructions to use Sarthak279/Movie-Classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Sarthak279/Movie-Classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Sarthak279/Movie-Classification")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Sarthak279/Movie-Classification") model = AutoModelForSequenceClassification.from_pretrained("Sarthak279/Movie-Classification") - Notebooks
- Google Colab
- Kaggle
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Sarthak279/Movie-Classification")
model = AutoModelForSequenceClassification.from_pretrained("Sarthak279/Movie-Classification")Quick Links
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Enter the story it will predict maximum probability of type of movie
Types:
Drama -0 , Action -1 , Comedy -2 , Adventure -3 , Thriller -4 , Crime -5 , Romance -6 , Sci-Fi -7 , Horror -8 , Mystery -9 , Fantasy -10 , Biography -11 , Family -12 , Animation -13 , History -14 , Sport -15 , Music -16 , War -17 , Western -18 , Musical -19
- Downloads last month
- 4
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Sarthak279/Movie-Classification")