JeCabrera commited on
Commit
88936e4
·
verified ·
1 Parent(s): 559f68e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -11
app.py CHANGED
@@ -151,7 +151,7 @@ SUCCESSFUL EXAMPLES OF THE {selected_angle} ANGLE:
151
  email_instruction += ".\n\n"
152
 
153
  # Agregar ejemplos de la fórmula
154
- examples_to_use = selected_formula['examples'][:min(5, len(selected_formula['examples']))]
155
 
156
  email_instruction += "FORMULA EXAMPLES TO STUDY (ONLY FOR STRUCTURE, NOT CONTENT):\n"
157
  for i, example in enumerate(examples_to_use, 1):
@@ -160,15 +160,13 @@ SUCCESSFUL EXAMPLES OF THE {selected_angle} ANGLE:
160
  # Añadir advertencia crítica con emoji para llamar la atención
161
  email_instruction += "\n⚠️ WARNING: DO NOT COPY THESE EXAMPLES. Create completely original content with different stories, scenarios and language. The examples are ONLY for understanding the structure.\n"
162
 
163
- # Consolidar todas las instrucciones específicas en un solo bloque
164
  specific_instructions = [
165
- "DO NOT copy the examples directly - create completely original content",
166
- f"Follow only the logical STRUCTURE and SEQUENCE of the formula for {target_audience} and {product}, never the specific content",
167
- "Use different vocabulary, scenarios, and narrative approaches than those in the examples",
168
- "Maintain the same persuasive techniques and psychological triggers but with entirely new content",
169
- "Create a cohesive sequence where emails reference each other naturally",
170
- "If an email references a previous one (like 'As I mentioned yesterday'), ensure this is logically consistent",
171
- "Be creative with stories, analogies, and examples while maintaining the formula's effectiveness"
172
  ]
173
 
174
  email_instruction += "\nSPECIFIC INSTRUCTIONS:\n"
@@ -208,9 +206,9 @@ SUCCESSFUL EXAMPLES OF THE {selected_angle} ANGLE:
208
  # Add the image to the message parts if it exists
209
  if is_image and image_parts:
210
  message_parts.append(image_parts)
211
- instruction_text = "Generate the emails in Spanish following exactly the style of the examples shown, drawing inspiration from the provided image."
212
  else:
213
- instruction_text = "Generate the emails in Spanish following exactly the style of the examples shown."
214
 
215
  # Simplificar las instrucciones finales para evitar redundancia
216
  instruction_text += " Do not include explanations, only the emails. IMPORTANT: Do not include greetings like 'Hello [Name]' and make sure that the postscripts (P.D.) are smaller and more discrete than the main body of the email, using a lighter format."
 
151
  email_instruction += ".\n\n"
152
 
153
  # Agregar ejemplos de la fórmula
154
+ examples_to_use = selected_formula['examples'][:min(5, len(selected_formula['examples']))] # Reduced number of examples
155
 
156
  email_instruction += "FORMULA EXAMPLES TO STUDY (ONLY FOR STRUCTURE, NOT CONTENT):\n"
157
  for i, example in enumerate(examples_to_use, 1):
 
160
  # Añadir advertencia crítica con emoji para llamar la atención
161
  email_instruction += "\n⚠️ WARNING: DO NOT COPY THESE EXAMPLES. Create completely original content with different stories, scenarios and language. The examples are ONLY for understanding the structure.\n"
162
 
163
+ # Consolidar todas las instrucciones específicas en un solo bloque - MODIFIED
164
  specific_instructions = [
165
+ "Create ENTIRELY NEW content - do not mimic the examples",
166
+ f"Use your creativity to develop unique scenarios for {target_audience}",
167
+ "Invent fresh stories and metaphors not present in the examples",
168
+ "Focus on originality while maintaining persuasive techniques",
169
+ "Create a cohesive sequence with your own narrative style"
 
 
170
  ]
171
 
172
  email_instruction += "\nSPECIFIC INSTRUCTIONS:\n"
 
206
  # Add the image to the message parts if it exists
207
  if is_image and image_parts:
208
  message_parts.append(image_parts)
209
+ instruction_text = "Generate the emails in Spanish following only the STRUCTURE of the examples, but with completely original content, drawing inspiration from the provided image."
210
  else:
211
+ instruction_text = "Generate the emails in Spanish following only the STRUCTURE of the examples, but with completely original content and stories."
212
 
213
  # Simplificar las instrucciones finales para evitar redundancia
214
  instruction_text += " Do not include explanations, only the emails. IMPORTANT: Do not include greetings like 'Hello [Name]' and make sure that the postscripts (P.D.) are smaller and more discrete than the main body of the email, using a lighter format."