Spaces:
Sleeping
Sleeping
cambio de max length
Browse files
app.py
CHANGED
@@ -13,5 +13,8 @@ pipe = pipeline(
|
|
13 |
token = os.getenv('HF_TOKEN')
|
14 |
)
|
15 |
|
16 |
-
|
17 |
-
|
|
|
|
|
|
|
|
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)
|