Views
No views yet
| Prediction | Tweet |
|---|---|
| 0 | Why the fuck I got over 1000 views on my story 😂😂 nothing new over here |
| 1. | first of all there is no vaccine to cure , whthr it is capsules, tablets, or injections, they just support to fight with d virus. I do not support people taking any kind of home remedies n making fun of an ayurvedic medicine..😐 |
1
2from transformers import T5ForConditionalGeneration, T5Tokenizer
3import torch
4model = T5ForConditionalGeneration.from_pretrained("sana-ngu/HaT5")
5tokenizer = T5Tokenizer.from_pretrained("t5-base")
6tokenizer.pad_token = tokenizer.eos_token
7input_ids = tokenizer("Old lions in the wild lay down and die with dignity when they can't hunt anymore. If a government is having 'teething problems' handling aid supplies one full year into a pandemic, maybe it should take a cue and get the fuck out of the way? ", padding=True, truncation=True, return_tensors='pt').input_ids
8outputs = model.generate(input_ids)
9pred = tokenizer.decode(outputs[0], skip_special_tokens=True)
10print(pred)
11