Spaces:
Running
Running
cryptocalypse
commited on
Commit
•
081792c
1
Parent(s):
fd22519
Update gen.py
Browse files
gen.py
CHANGED
@@ -148,8 +148,7 @@ prompt = (
|
|
148 |
|
149 |
def generate(event):
|
150 |
# Generar el texto usando el modelo
|
151 |
-
outputs = pipe(prompt+" "+event, max_new_tokens=
|
152 |
|
153 |
# Imprimir la salida generada
|
154 |
-
|
155 |
-
return outputs[0]["generated_text"]
|
|
|
148 |
|
149 |
def generate(event):
|
150 |
# Generar el texto usando el modelo
|
151 |
+
outputs = pipe(prompt+" "+event, max_new_tokens=512, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
|
152 |
|
153 |
# Imprimir la salida generada
|
154 |
+
return outputs
|
|