JeCabrera commited on
Commit
3a3e19c
·
verified ·
1 Parent(s): 0bd2e7f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -376,8 +376,8 @@ if submit:
376
 
377
  if valid_inputs and selected_formula:
378
  try:
379
- # Add a spinner while generating emails
380
- with col2.spinner("Creando los emails..."):
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>