JeCabrera commited on
Commit
d0b344e
·
verified ·
1 Parent(s): 2dba4d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -20
app.py CHANGED
@@ -643,29 +643,29 @@ with col1:
643
  product = st.text_input("¿Qué producto tienes en mente?", placeholder="Ejemplo: Curso de Inglés")
644
  number_of_headlines = st.selectbox("Número de Titulares", options=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10], index=4)
645
 
646
- # Crear un único acordeón para fórmula y creatividad
647
  with st.expander("Personaliza tus titulares"):
648
  temperature = st.slider("Creatividad", min_value=0.0, max_value=2.0, value=1.0, step=0.1)
649
-
650
- selected_formula_key = st.selectbox(
651
- "Selecciona una fórmula para tus titulares",
652
- options=list(headline_formulas.keys())
653
- )
654
 
655
- # Agregar selector de ángulo
656
- selected_angle = st.selectbox(
657
- "Selecciona el ángulo para tus titulares",
658
- options=[
659
- "AUTORIDAD",
660
- "CURIOSIDAD",
661
- "ADVERTENCIA",
662
- "EMOCIONAL",
663
- "SENSACIONALISTA",
664
- "CONTRASTE",
665
- "PREGUNTA",
666
- "MEZCLA"
667
- ]
668
- )
 
 
 
 
 
669
 
670
  selected_formula = headline_formulas[selected_formula_key]
671
 
 
643
  product = st.text_input("¿Qué producto tienes en mente?", placeholder="Ejemplo: Curso de Inglés")
644
  number_of_headlines = st.selectbox("Número de Titulares", options=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10], index=4)
645
 
646
+ # Crear un único acordeón para fórmula, creatividad y ángulo
647
  with st.expander("Personaliza tus titulares"):
648
  temperature = st.slider("Creatividad", min_value=0.0, max_value=2.0, value=1.0, step=0.1)
 
 
 
 
 
649
 
650
+ selected_formula_key = st.selectbox(
651
+ "Selecciona una fórmula para tus titulares",
652
+ options=list(headline_formulas.keys())
653
+ )
654
+
655
+ # Mover el selector de ángulo dentro del expander
656
+ selected_angle = st.selectbox(
657
+ "Selecciona el ángulo para tus titulares",
658
+ options=[
659
+ "AUTORIDAD",
660
+ "CURIOSIDAD",
661
+ "ADVERTENCIA",
662
+ "EMOCIONAL",
663
+ "SENSACIONALISTA",
664
+ "CONTRASTE",
665
+ "PREGUNTA",
666
+ "MEZCLA"
667
+ ]
668
+ )
669
 
670
  selected_formula = headline_formulas[selected_formula_key]
671