Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -114,11 +114,11 @@ with col1:
|
|
114 |
length = st.slider("N煤mero de palabras", min_value=50, max_value=200, value=100)
|
115 |
mood = st.selectbox("Tono de voz", ["Conversacional", "Formal", "Persuasivo"])
|
116 |
emotionality = st.selectbox("Emocionalidad del texto", ["Triste", "Feliz", "Horror", "Comedia", "Rom谩ntico", "Sorpresa", "Desesperaci贸n", "Esperanza", "Ira", "Confianza"])
|
117 |
-
|
118 |
-
|
|
|
119 |
|
120 |
-
#
|
121 |
-
if st.button("Escribir mi Texto", key="generate_text_button"):
|
122 |
if target_audience and product: # Verificar que se haya proporcionado el p煤blico objetivo y el producto
|
123 |
try:
|
124 |
# Obtener la respuesta del modelo
|
|
|
114 |
length = st.slider("N煤mero de palabras", min_value=50, max_value=200, value=100)
|
115 |
mood = st.selectbox("Tono de voz", ["Conversacional", "Formal", "Persuasivo"])
|
116 |
emotionality = st.selectbox("Emocionalidad del texto", ["Triste", "Feliz", "Horror", "Comedia", "Rom谩ntico", "Sorpresa", "Desesperaci贸n", "Esperanza", "Ira", "Confianza"])
|
117 |
+
|
118 |
+
# Bot贸n para generar y enviar el contenido
|
119 |
+
submit = st.button("Escribir mi Texto")
|
120 |
|
121 |
+
if submit: # Verifica si se hizo clic en el bot贸n de env铆o
|
|
|
122 |
if target_audience and product: # Verificar que se haya proporcionado el p煤blico objetivo y el producto
|
123 |
try:
|
124 |
# Obtener la respuesta del modelo
|