Spaces:
Sleeping
Sleeping
Upload 9 files
Browse files
app.py
CHANGED
@@ -75,10 +75,34 @@ IMPORTANT:
|
|
75 |
# Añadir contenido del archivo si existe
|
76 |
if file_content:
|
77 |
headlines_instruction += f"""
|
78 |
-
|
79 |
-
|
80 |
-
{file_content[:3000]}
|
81 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
"""
|
83 |
|
84 |
# Añadir instrucciones de ángulo solo si no es "NINGUNO"
|
|
|
75 |
# Añadir contenido del archivo si existe
|
76 |
if file_content:
|
77 |
headlines_instruction += f"""
|
78 |
+
REFERENCE CONTENT:
|
79 |
+
Carefully analyze the following content as a reference for generating headlines:
|
80 |
+
{file_content[:3000]}
|
81 |
+
|
82 |
+
ANALYSIS INSTRUCTIONS:
|
83 |
+
1. Extract key information about the product or service mentioned
|
84 |
+
2. Identify the tone, style, and language used
|
85 |
+
3. Detect any data about the target audience or customer avatar
|
86 |
+
4. Look for benefits, features, or pain points mentioned
|
87 |
+
5. Use relevant terms, phrases, or concepts from the content
|
88 |
+
6. Maintain consistency with the brand identity or main message
|
89 |
+
7. Adapt the headlines to resonate with the provided content
|
90 |
+
|
91 |
+
IMPORTANT COMBINATIONS:
|
92 |
+
"""
|
93 |
+
# Check different combinations of inputs
|
94 |
+
if product and target_audience:
|
95 |
+
headlines_instruction += f"""- You have both product ({product}) and target audience ({target_audience}): Create headlines that connect this specific product with this specific audience, using insights from the document to strengthen the connection.
|
96 |
+
"""
|
97 |
+
elif product:
|
98 |
+
headlines_instruction += f"""- You have product ({product}) but no specific target audience: Extract audience information from the document to determine who would benefit most from this product, then create targeted headlines.
|
99 |
+
"""
|
100 |
+
elif target_audience:
|
101 |
+
headlines_instruction += f"""- You have target audience ({target_audience}) but no specific product: Identify products or services from the document that would appeal to this audience, then create headlines focused on their needs.
|
102 |
+
"""
|
103 |
+
|
104 |
+
headlines_instruction += """
|
105 |
+
IMPORTANT: Naturally integrate the elements found in the content with the selected formula and angle.
|
106 |
"""
|
107 |
|
108 |
# Añadir instrucciones de ángulo solo si no es "NINGUNO"
|