xnetba commited on
Commit
c268f0b
·
1 Parent(s): 93da9c8

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ from transformers import pipeline
2
+
3
+ generator = pipeline("text-generation", model="distilgpt2")
4
+ generator(
5
+ "In this course, we will teach you how to",
6
+ max_length=30,
7
+ num_return_sequences=2,
8
+ )