Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ from transformers import pipeline, set_seed
|
|
7 |
def infer(sent, max_length, num_return_sequences):
|
8 |
generator = pipeline('text-generation', model='gpt2')
|
9 |
|
10 |
-
return generator(sent, max_length, num_return_sequences)
|
11 |
|
12 |
|
13 |
st.title("Write with Transformers π¦")
|
|
|
7 |
def infer(sent, max_length, num_return_sequences):
|
8 |
generator = pipeline('text-generation', model='gpt2')
|
9 |
|
10 |
+
return generator(sent, max_length=max_length, num_return_sequences=num_return_sequences)
|
11 |
|
12 |
|
13 |
st.title("Write with Transformers π¦")
|