Views
No views yet
1from transformers import pipeline
2
3# load the model (replace with actual model ID if needed)
4summarizer = pipeline("summarization", model="aiyubali/Fine-Tuned-LLM_News_Summarizer")
5
6long_bangla_text = \"\"\" … (put your Bangla article here) … \"\"\"
7summary = summarizer(long_bangla_text, max_new_tokens=200)[0]["summary_text"]
8
9print("Summary:", summary)