Update app.py
Browse files
app.py
CHANGED
|
@@ -376,8 +376,8 @@ if submit:
|
|
| 376 |
|
| 377 |
if valid_inputs and selected_formula:
|
| 378 |
try:
|
| 379 |
-
#
|
| 380 |
-
with
|
| 381 |
# Update the function call to include creative_idea
|
| 382 |
generated_emails = generate_emails(
|
| 383 |
target_audience,
|
|
@@ -393,7 +393,7 @@ if submit:
|
|
| 393 |
creative_idea # Add the creative idea parameter
|
| 394 |
)
|
| 395 |
|
| 396 |
-
# Display the generated emails
|
| 397 |
col2.markdown(f"""
|
| 398 |
<div class="results-container">
|
| 399 |
<h4>Tus emails persuasivos:</h4>
|
|
|
|
| 376 |
|
| 377 |
if valid_inputs and selected_formula:
|
| 378 |
try:
|
| 379 |
+
# Use st.spinner instead of col2.spinner
|
| 380 |
+
with st.spinner("Creando los emails..."):
|
| 381 |
# Update the function call to include creative_idea
|
| 382 |
generated_emails = generate_emails(
|
| 383 |
target_audience,
|
|
|
|
| 393 |
creative_idea # Add the creative idea parameter
|
| 394 |
)
|
| 395 |
|
| 396 |
+
# Display the generated emails in col2
|
| 397 |
col2.markdown(f"""
|
| 398 |
<div class="results-container">
|
| 399 |
<h4>Tus emails persuasivos:</h4>
|