Update app.py
Browse files
app.py
CHANGED
@@ -250,12 +250,9 @@ with col1:
|
|
250 |
# Add new Creative Idea input field
|
251 |
creative_idea = st.text_area("Idea Creativa", placeholder="Ejemplo: Tu curso es como Netflix: ofrece contenido que engancha y soluciones que la gente realmente quiere ver", height=100)
|
252 |
|
253 |
-
#
|
254 |
submit = st.button("Generar Emails", key="generate_emails_button")
|
255 |
|
256 |
-
# Remove the duplicate submit button that appears below
|
257 |
-
# submit = st.button("Generar Emails") <- This line should be removed
|
258 |
-
|
259 |
# Crear un único acordeón para fórmula, creatividad y ángulo
|
260 |
with st.expander("Personaliza tus emails"):
|
261 |
temperature = st.slider("Creatividad", min_value=0.0, max_value=2.0, value=1.0, step=0.1)
|
@@ -377,24 +374,9 @@ if submit:
|
|
377 |
desired_action,
|
378 |
creative_idea # Add the creative idea parameter
|
379 |
)
|
|
|
380 |
|
381 |
-
#
|
382 |
-
if creative_idea:
|
383 |
-
email_instruction += f"""
|
384 |
-
CREATIVE CONCEPT:
|
385 |
-
Use the following creative concept as the central theme for all emails in the sequence:
|
386 |
-
"{creative_idea}"
|
387 |
-
|
388 |
-
CREATIVE CONCEPT INSTRUCTIONS:
|
389 |
-
1. This concept should be the unifying theme across all emails
|
390 |
-
2. Use it as a metaphor or analogy throughout the sequence
|
391 |
-
3. Develop different aspects of this concept in each email
|
392 |
-
4. Make sure the concept naturally connects to the product benefits
|
393 |
-
5. The concept should make the emails more memorable and engaging
|
394 |
-
|
395 |
-
"""
|
396 |
-
# Remove the inline CSS since we've moved it to main.css
|
397 |
-
|
398 |
col2.markdown(f"""
|
399 |
<div class="results-container">
|
400 |
<h4>Tus emails persuasivos:</h4>
|
|
|
250 |
# Add new Creative Idea input field
|
251 |
creative_idea = st.text_area("Idea Creativa", placeholder="Ejemplo: Tu curso es como Netflix: ofrece contenido que engancha y soluciones que la gente realmente quiere ver", height=100)
|
252 |
|
253 |
+
# Only one submit button with a unique key
|
254 |
submit = st.button("Generar Emails", key="generate_emails_button")
|
255 |
|
|
|
|
|
|
|
256 |
# Crear un único acordeón para fórmula, creatividad y ángulo
|
257 |
with st.expander("Personaliza tus emails"):
|
258 |
temperature = st.slider("Creatividad", min_value=0.0, max_value=2.0, value=1.0, step=0.1)
|
|
|
374 |
desired_action,
|
375 |
creative_idea # Add the creative idea parameter
|
376 |
)
|
377 |
+
|
378 |
|
379 |
+
# Display the generated emails
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
380 |
col2.markdown(f"""
|
381 |
<div class="results-container">
|
382 |
<h4>Tus emails persuasivos:</h4>
|