test1.1
Browse files
app.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
from transformers import pipeline
|
| 2 |
generator = pipeline("text-generation", model="EleutherAI/gpt-neo-2.7B")
|
| 3 |
|
| 4 |
-
|
| 5 |
result = generator( prompt, max_length=400, num_return_sequences=1, do_sample=True, temperature=0.7, top_p=0.9, repetition_penalty=1.1, )
|
|
|
|
| 1 |
from transformers import pipeline
|
| 2 |
generator = pipeline("text-generation", model="EleutherAI/gpt-neo-2.7B")
|
| 3 |
|
| 4 |
+
prompt = "hola"
|
| 5 |
result = generator( prompt, max_length=400, num_return_sequences=1, do_sample=True, temperature=0.7, top_p=0.9, repetition_penalty=1.1, )
|