Update app.py
Browse files
app.py
CHANGED
@@ -360,21 +360,22 @@ if submit:
|
|
360 |
|
361 |
if valid_inputs and selected_formula:
|
362 |
try:
|
363 |
-
#
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
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"""
|