JeCabrera commited on
Commit
c315672
·
verified ·
1 Parent(s): 0a6ba5f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -12
app.py CHANGED
@@ -210,26 +210,25 @@ with col1:
210
 
211
  # Crear un único acordeón para fórmula, creatividad y ángulo
212
  with st.expander("Personaliza tus titulares"):
213
- # Moved formula selection above number of headlines
 
 
 
 
 
 
 
214
  selected_formula_key = st.selectbox(
215
  "Selecciona una fórmula para tus titulares",
216
  options=list(headline_formulas.keys())
217
  )
218
 
219
- # Added number of headlines after formula selection
220
  number_of_headlines = st.selectbox("Número de Titulares", options=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10], index=4)
221
 
222
- # New text area for base copy
223
- base_copy = st.text_area(
224
- "Texto base para generar titulares (opcional)",
225
- placeholder="Agrega aquí un texto que sirva como base para generar los titulares. Si lo dejas vacío, se generarán basados en el producto y público objetivo.",
226
- height=150
227
- )
228
-
229
  temperature = st.slider("Creatividad", min_value=0.0, max_value=2.0, value=1.0, step=0.1)
230
-
231
- # Automatically use the keys from the angles dictionary
232
- # Make sure "NINGUNO" appears first, then the rest alphabetically
233
  angle_keys = ["NINGUNO"] + sorted([key for key in angles.keys() if key != "NINGUNO"])
234
  selected_angle = st.selectbox(
235
  "Selecciona el ángulo para tus titulares",
 
210
 
211
  # Crear un único acordeón para fórmula, creatividad y ángulo
212
  with st.expander("Personaliza tus titulares"):
213
+ # Moved text area for base copy above formula selection
214
+ base_copy = st.text_area(
215
+ "Correo o copy para inspiración de titulares",
216
+ placeholder="Agrega aquí un texto que sirva como base para generar los titulares. Si lo dejas vacío, se generarán basados en el producto y público objetivo.",
217
+ height=150
218
+ )
219
+
220
+ # Formula selection after the text area
221
  selected_formula_key = st.selectbox(
222
  "Selecciona una fórmula para tus titulares",
223
  options=list(headline_formulas.keys())
224
  )
225
 
226
+ # Number of headlines
227
  number_of_headlines = st.selectbox("Número de Titulares", options=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10], index=4)
228
 
 
 
 
 
 
 
 
229
  temperature = st.slider("Creatividad", min_value=0.0, max_value=2.0, value=1.0, step=0.1)
230
+
231
+ # Angle selection
 
232
  angle_keys = ["NINGUNO"] + sorted([key for key in angles.keys() if key != "NINGUNO"])
233
  selected_angle = st.selectbox(
234
  "Selecciona el ángulo para tus titulares",