CoolFace
Apppublic

RrDev/test-project

sourceHugging Faceupdated 3y agoView on Hugging Face
0likes
app.py10 linesDownload Raw Back to root
1from transformers import pipeline2 3generator = pipeline("text-generation", model="distilgpt2")4 5res = generator(6    "In this course we will teach you how to",7    max_length = 30,8    num_return_sequence = 29)10print(res)