JeCabrera commited on
Commit
f82b1e0
·
verified ·
1 Parent(s): 5063b88

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -15
app.py CHANGED
@@ -360,21 +360,22 @@ if submit:
360
 
361
  if valid_inputs and selected_formula:
362
  try:
363
- # Update the function call to include creative_idea
364
- generated_emails = generate_emails(
365
- target_audience,
366
- product,
367
- temperature,
368
- selected_formula,
369
- selected_angle,
370
- file_content if 'file_content' in locals() else "",
371
- image_parts if 'image_parts' in locals() else None,
372
- is_image if 'is_image' in locals() else False,
373
- emotion,
374
- desired_action,
375
- creative_idea # Add the creative idea parameter
376
- )
377
-
 
378
 
379
  # Display the generated emails
380
  col2.markdown(f"""
 
360
 
361
  if valid_inputs and selected_formula:
362
  try:
363
+ # Add a spinner while generating emails
364
+ with col2.spinner("Creando los emails..."):
365
+ # Update the function call to include creative_idea
366
+ generated_emails = generate_emails(
367
+ target_audience,
368
+ product,
369
+ temperature,
370
+ selected_formula,
371
+ selected_angle,
372
+ file_content if 'file_content' in locals() else "",
373
+ image_parts if 'image_parts' in locals() else None,
374
+ is_image if 'is_image' in locals() else False,
375
+ emotion,
376
+ desired_action,
377
+ creative_idea # Add the creative idea parameter
378
+ )
379
 
380
  # Display the generated emails
381
  col2.markdown(f"""