uploaded trained model files 6b14493
Maninder Singh commited on
How to use philomath-1209/programming-language-identification with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="philomath-1209/programming-language-identification") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("philomath-1209/programming-language-identification")
model = AutoModelForSequenceClassification.from_pretrained("philomath-1209/programming-language-identification")