Update app.py
Browse files
app.py
CHANGED
@@ -58,8 +58,6 @@ FORMAT EXAMPLE:
|
|
58 |
---
|
59 |
SUBJECT: [Attractive subject line]
|
60 |
|
61 |
-
Hello [Name],
|
62 |
-
|
63 |
[Email body with persuasive and emotional content]
|
64 |
|
65 |
[Clear call to action]
|
@@ -198,23 +196,23 @@ Create {number_of_emails} emails that faithfully follow the style and structure
|
|
198 |
{
|
199 |
"role": "user",
|
200 |
"parts": [
|
201 |
-
email_instruction,
|
202 |
image_parts
|
203 |
],
|
204 |
},
|
205 |
]
|
206 |
)
|
207 |
-
response = chat_session.send_message("Genera los emails siguiendo exactamente el estilo de los ejemplos mostrados, inspirándote en la imagen proporcionada.")
|
208 |
else:
|
209 |
chat_session = model.start_chat(
|
210 |
history=[
|
211 |
{
|
212 |
"role": "user",
|
213 |
-
"parts": [email_instruction],
|
214 |
},
|
215 |
]
|
216 |
)
|
217 |
-
response = chat_session.send_message("Genera los emails siguiendo exactamente el estilo de los ejemplos mostrados.")
|
218 |
|
219 |
return response.text
|
220 |
|
@@ -368,8 +366,8 @@ if submit:
|
|
368 |
file_content if 'file_content' in locals() else "",
|
369 |
image_parts if 'image_parts' in locals() else None,
|
370 |
is_image if 'is_image' in locals() else False,
|
371 |
-
emotion,
|
372 |
-
desired_action
|
373 |
)
|
374 |
col2.markdown(f"""
|
375 |
<div class="results-container">
|
|
|
58 |
---
|
59 |
SUBJECT: [Attractive subject line]
|
60 |
|
|
|
|
|
61 |
[Email body with persuasive and emotional content]
|
62 |
|
63 |
[Clear call to action]
|
|
|
196 |
{
|
197 |
"role": "user",
|
198 |
"parts": [
|
199 |
+
email_instruction,
|
200 |
image_parts
|
201 |
],
|
202 |
},
|
203 |
]
|
204 |
)
|
205 |
+
response = chat_session.send_message("Genera los emails en español siguiendo exactamente el estilo de los ejemplos mostrados, inspirándote en la imagen proporcionada. No incluyas explicaciones, solo los emails.")
|
206 |
else:
|
207 |
chat_session = model.start_chat(
|
208 |
history=[
|
209 |
{
|
210 |
"role": "user",
|
211 |
+
"parts": [email_instruction],
|
212 |
},
|
213 |
]
|
214 |
)
|
215 |
+
response = chat_session.send_message("Genera los emails en español siguiendo exactamente el estilo de los ejemplos mostrados. No incluyas explicaciones, solo los emails.")
|
216 |
|
217 |
return response.text
|
218 |
|
|
|
366 |
file_content if 'file_content' in locals() else "",
|
367 |
image_parts if 'image_parts' in locals() else None,
|
368 |
is_image if 'is_image' in locals() else False,
|
369 |
+
emotion,
|
370 |
+
desired_action
|
371 |
)
|
372 |
col2.markdown(f"""
|
373 |
<div class="results-container">
|