Transformers
PyTorch
Safetensors
English
t5
text2text-generation
seq2seq
positive_perspectives
text-generation-inference
Instructions to use dominguesm/positive-reframing-en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dominguesm/positive-reframing-en with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("dominguesm/positive-reframing-en") model = AutoModelForSeq2SeqLM.from_pretrained("dominguesm/positive-reframing-en") - Notebooks
- Google Colab
- Kaggle
how to use
#2
by Yzhenyu - opened
I have downloaded the model, but I don't know how to run it after looking the usage
from transformers import pipeline
pipe = pipeline('summarization', "dominguesm/positive-reframing-en")
text = "['growth']: totally fed up with this bid now! :-( haven't even thought about my presentation yet :-("
pipe(text, max_length=1024)
do someone know how to use this model, please reply this discussion
Hi Yzhenyu
Usage examples: https://colab.research.google.com/drive/1-t5ffjZB98MLH-lfab4i_daF-_PnTBUi?usp=sharing
thank you very much,I have run it successfully. I didn't expect you to reply so promptly, thank you again!
dominguesm changed discussion status to closed