initial commit adding files 8473922
Gleb Vinarskis commited on
How to use Maslionok/language-detection-pipeline with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="Maslionok/language-detection-pipeline", trust_remote_code=True) # Load model directly
from transformers import AutoModelForTokenClassification
model = AutoModelForTokenClassification.from_pretrained("Maslionok/language-detection-pipeline", trust_remote_code=True, device_map="auto")