Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -55,41 +55,31 @@ st.markdown(styles["button"], unsafe_allow_html=True)
|
|
55 |
col1, col2 = st.columns([1, 2])
|
56 |
|
57 |
# Columnas de entrada
|
|
|
58 |
with col1:
|
59 |
target_audience = st.text_input("¿Quién es tu público objetivo?", placeholder="Ejemplo: Estudiantes Universitarios")
|
60 |
product = st.text_input("¿Qué producto tienes en mente?", placeholder="Ejemplo: Curso de Inglés")
|
61 |
number_of_benefits = st.selectbox("Número de Beneficios", options=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10], index=4)
|
62 |
|
63 |
-
#
|
64 |
-
|
65 |
-
|
|
|
66 |
temperature = st.slider("Creatividad", min_value=0.0, max_value=2.0, value=1.0, step=0.1)
|
67 |
-
|
68 |
selected_formula_key = st.selectbox(
|
69 |
"Selecciona una fórmula para tus beneficios",
|
70 |
options=list(bullet_formulas.keys())
|
71 |
)
|
72 |
selected_formula = bullet_formulas[selected_formula_key]
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
# Update the generate_benefits call
|
83 |
-
generated_benefits = generate_benefits(
|
84 |
-
number_of_benefits,
|
85 |
-
target_audience,
|
86 |
-
product,
|
87 |
-
temperature,
|
88 |
-
selected_formula,
|
89 |
-
selected_angle # Add the angle parameter
|
90 |
-
)
|
91 |
-
|
92 |
-
# Botón de enviar
|
93 |
submit = st.button("Generar Beneficios")
|
94 |
|
95 |
# Mostrar los beneficios generados
|
|
|
55 |
col1, col2 = st.columns([1, 2])
|
56 |
|
57 |
# Columnas de entrada
|
58 |
+
# Inside the column section
|
59 |
with col1:
|
60 |
target_audience = st.text_input("¿Quién es tu público objetivo?", placeholder="Ejemplo: Estudiantes Universitarios")
|
61 |
product = st.text_input("¿Qué producto tienes en mente?", placeholder="Ejemplo: Curso de Inglés")
|
62 |
number_of_benefits = st.selectbox("Número de Beneficios", options=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10], index=4)
|
63 |
|
64 |
+
# Create tabs instead of nested expanders
|
65 |
+
tab1, tab2 = st.tabs(["Fórmula", "Ángulo"])
|
66 |
+
|
67 |
+
with st.expander:
|
68 |
temperature = st.slider("Creatividad", min_value=0.0, max_value=2.0, value=1.0, step=0.1)
|
|
|
69 |
selected_formula_key = st.selectbox(
|
70 |
"Selecciona una fórmula para tus beneficios",
|
71 |
options=list(bullet_formulas.keys())
|
72 |
)
|
73 |
selected_formula = bullet_formulas[selected_formula_key]
|
74 |
+
|
75 |
+
with st.expander:
|
76 |
+
selected_angle_key = st.selectbox(
|
77 |
+
"Selecciona el ángulo para tus beneficios",
|
78 |
+
options=list(bullet_angles.keys())
|
79 |
+
)
|
80 |
+
selected_angle = bullet_angles[selected_angle_key]
|
81 |
+
|
82 |
+
# Button at the bottom
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
submit = st.button("Generar Beneficios")
|
84 |
|
85 |
# Mostrar los beneficios generados
|