cryptocalypse commited on
Commit
081792c
1 Parent(s): fd22519

Update gen.py

Browse files
Files changed (1) hide show
  1. gen.py +2 -3
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=1024, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
152
 
153
  # Imprimir la salida generada
154
- print(outputs[0]["generated_text"])
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