Spaces:
Sleeping
Sleeping
Update prompts.py
Browse files- prompts.py +20 -12
prompts.py
CHANGED
@@ -388,27 +388,25 @@ def create_fb_ad_instruction(target_audience, product, selected_formula, selecte
|
|
388 |
- CRITICAL: Keep the total ad length between 125-150 words maximum
|
389 |
- Focus on the most impactful points rather than trying to cover everything
|
390 |
|
391 |
-
#
|
392 |
-
|
393 |
-
| ANUNCIO PREMIUM #1 |
|
394 |
|
395 |
-
|
|
|
396 |
|
397 |
-
|
398 |
|
|
|
399 |
|
400 |
-
| ANUNCIO PREMIUM #2 |
|
401 |
|
402 |
-
|
403 |
|
404 |
-
[Complete text for the second ad,
|
405 |
|
406 |
|
407 |
| ANUNCIO PREMIUM #3 |
|
408 |
|
409 |
-
[
|
410 |
-
|
411 |
-
[Complete text for the third ad, following all the requirements above]
|
412 |
|
413 |
--------------------------
|
414 |
|
@@ -432,9 +430,13 @@ def create_fb_ad_instruction(target_audience, product, selected_formula, selecte
|
|
432 |
6. Does the ad avoid using direct second-person pronouns (tú, te, tu, etc.)? (Must be YES)
|
433 |
|
434 |
Your goal is to inspire desire and action, avoiding explanations or categories in the response.
|
|
|
|
|
|
|
|
|
435 |
"""
|
436 |
|
437 |
-
# If a headline is provided,
|
438 |
if headline:
|
439 |
instruction += f"""
|
440 |
|
@@ -452,6 +454,12 @@ def create_fb_ad_instruction(target_audience, product, selected_formula, selecte
|
|
452 |
- NO lo muestres separado al principio de la respuesta
|
453 |
- Asegúrate de que el titular aparezca como parte del formato del anuncio (por ejemplo, como primera línea del ANUNCIO PREMIUM #1)
|
454 |
- El titular debe aparecer naturalmente dentro del texto del anuncio, no como un elemento separado
|
|
|
|
|
|
|
|
|
|
|
|
|
455 |
"""
|
456 |
|
457 |
# Añadir verificación de políticas internamente (no visible para el usuario)
|
|
|
388 |
- CRITICAL: Keep the total ad length between 125-150 words maximum
|
389 |
- Focus on the most impactful points rather than trying to cover everything
|
390 |
|
391 |
+
# Modify the output format instruction to be more explicit
|
392 |
+
instruction += """
|
|
|
393 |
|
394 |
+
# CRITICAL INSTRUCTION ABOUT OUTPUT FORMAT:
|
395 |
+
Output format MUST follow this EXACT structure:
|
396 |
|
397 |
+
| ANUNCIO PREMIUM #1 |
|
398 |
|
399 |
+
[Complete text for the first ad, with the headline as the first line of the ad text]
|
400 |
|
|
|
401 |
|
402 |
+
| ANUNCIO PREMIUM #2 |
|
403 |
|
404 |
+
[Complete text for the second ad, with the headline as the first line of the ad text]
|
405 |
|
406 |
|
407 |
| ANUNCIO PREMIUM #3 |
|
408 |
|
409 |
+
[Complete text for the third ad, with the headline as the first line of the ad text]
|
|
|
|
|
410 |
|
411 |
--------------------------
|
412 |
|
|
|
430 |
6. Does the ad avoid using direct second-person pronouns (tú, te, tu, etc.)? (Must be YES)
|
431 |
|
432 |
Your goal is to inspire desire and action, avoiding explanations or categories in the response.
|
433 |
+
DO NOT include any headline separately at the beginning of your response.
|
434 |
+
DO NOT include "Anuncio Generado:" or any other text before the ad format.
|
435 |
+
DO NOT include the headline as a separate element outside the ad format.
|
436 |
+
The headline should ONLY appear as the first line of each ad's text.
|
437 |
"""
|
438 |
|
439 |
+
# If a headline is provided, make the instruction even more explicit
|
440 |
if headline:
|
441 |
instruction += f"""
|
442 |
|
|
|
454 |
- NO lo muestres separado al principio de la respuesta
|
455 |
- Asegúrate de que el titular aparezca como parte del formato del anuncio (por ejemplo, como primera línea del ANUNCIO PREMIUM #1)
|
456 |
- El titular debe aparecer naturalmente dentro del texto del anuncio, no como un elemento separado
|
457 |
+
IMPORTANTE - FORMATO DEL TITULAR:
|
458 |
+
- El titular proporcionado "{headline}" debe aparecer ÚNICAMENTE como la primera línea del texto del anuncio
|
459 |
+
- NO lo muestres como un elemento separado fuera del formato del anuncio
|
460 |
+
- NO lo repitas al principio de la respuesta
|
461 |
+
- El titular debe estar integrado como la primera línea del texto del anuncio, dentro del formato "| ANUNCIO PREMIUM #1 |"
|
462 |
+
- La respuesta debe comenzar directamente con "| ANUNCIO PREMIUM #1 |" sin ningún texto o titular antes
|
463 |
"""
|
464 |
|
465 |
# Añadir verificación de políticas internamente (no visible para el usuario)
|