AryanLala/autonlp-data-Scientific_Title_Generator
Preview โข Updated โข 229 โข 2
How to use AryanLala/autonlp-Scientific_Title_Generator-34558227 with Transformers:
# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("AryanLala/autonlp-Scientific_Title_Generator-34558227")
model = AutoModelForSeq2SeqLM.from_pretrained("AryanLala/autonlp-Scientific_Title_Generator-34558227")You can use cURL to access this model:
$ curl -X POST -H "Authorization: Bearer YOUR_HUGGINGFACE_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoNLP"}' https://api-inference.huggingface.co/AryanLala/autonlp-Scientific_Title_Generator-34558227