UnionJack commited on
Commit
859a48d
·
verified ·
1 Parent(s): cffd0c9

cambio de max length

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -13,5 +13,8 @@ pipe = pipeline(
13
  token = os.getenv('HF_TOKEN')
14
  )
15
 
16
- input = st.text_input("Ingrese el Promt")
17
- st.write(pipe(input))
 
 
 
 
13
  token = os.getenv('HF_TOKEN')
14
  )
15
 
16
+ if input_text:
17
+ # Establecer la longitud máxima de la respuesta
18
+ max_length = 100 # Cambia este valor según tus necesidades
19
+ response = pipe(input_text, max_length=max_length)
20
+ st.write(response)