--- language: - en - ta license: cc-by-4.0 tags: - translation - tamil - colloquial-tamil - fine-tuned - text-to-text ## 🔥 Example Usage Load and test the model using **Hugging Face Transformers**: ```python from transformers import AutoModelForSeq2SeqLM, AutoTokenizer # Load model and tokenizer model_name = "aishu15/colloquial-tamil" tokenizer = AutoTokenizer.from_pretrained(model_name) model = AutoModelForSeq2SeqLM.from_pretrained(model_name) # Function to translate text def translate(text): inputs = tokenizer(text, return_tensors="pt") outputs = model.generate(**inputs, max_length=128) return tokenizer.decode(outputs[0], skip_special_tokens=True) # Example translations test_sentences = [ "This is so beautiful", "Bro, are you coming or not?", "My mom is gonna kill me if I don't reach home now!" ] for sentence in test_sentences: print(f"English: {sentence}") print(f"Colloquial Tamil: {translate(sentence)}\n")