Practica4 / app.py
MelisaRS's picture
create app
3765a70 verified
raw
history blame
250 Bytes
from transformers import pipeline
generator = pipeline("text-generation", model="EleutherAI/gpt-neo-2.7B")
result = generator( prompt, max_length=400, num_return_sequences=1, do_sample=True, temperature=0.7, top_p=0.9, repetition_penalty=1.1, )