Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -182,9 +182,17 @@ with col2:
|
|
| 182 |
if st.session_state.submitted and not st.session_state.generated:
|
| 183 |
with st.spinner('Creando tu oferta perfecta...'):
|
| 184 |
base_prompt = f"""You are a professional copywriter specializing in creating irresistible offers.
|
| 185 |
-
|
| 186 |
-
|
| 187 |
Target Audience: {st.session_state.target_audience if hasattr(st.session_state, 'target_audience') and st.session_state.target_audience else 'General audience'}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 188 |
"""
|
| 189 |
|
| 190 |
if st.session_state.input_type == "manual":
|
|
@@ -240,7 +248,14 @@ with col2:
|
|
| 240 |
Formula Description:
|
| 241 |
{offer_formulas[st.session_state.formula_type]["description"]}
|
| 242 |
|
| 243 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 244 |
|
| 245 |
IMPORTANT: Provide ONLY the final offer text. Do not include any explanations, labels, formatting instructions, brackets, or call to action at the end."""
|
| 246 |
|
|
|
|
| 182 |
if st.session_state.submitted and not st.session_state.generated:
|
| 183 |
with st.spinner('Creando tu oferta perfecta...'):
|
| 184 |
base_prompt = f"""You are a professional copywriter specializing in creating irresistible offers.
|
| 185 |
+
First, analyze the target audience/avatar based on the information provided:
|
|
|
|
| 186 |
Target Audience: {st.session_state.target_audience if hasattr(st.session_state, 'target_audience') and st.session_state.target_audience else 'General audience'}
|
| 187 |
+
|
| 188 |
+
Consider their:
|
| 189 |
+
- Pain points and frustrations
|
| 190 |
+
- Desires and aspirations
|
| 191 |
+
- Current situation
|
| 192 |
+
- Emotional state
|
| 193 |
+
- Objections they might have
|
| 194 |
+
|
| 195 |
+
Then, create a compelling and persuasive offer using the {st.session_state.formula_type} formula that speaks directly to this avatar.
|
| 196 |
"""
|
| 197 |
|
| 198 |
if st.session_state.input_type == "manual":
|
|
|
|
| 248 |
Formula Description:
|
| 249 |
{offer_formulas[st.session_state.formula_type]["description"]}
|
| 250 |
|
| 251 |
+
Examples of this formula:
|
| 252 |
+
{chr(10).join(offer_formulas[st.session_state.formula_type]["examples"])}
|
| 253 |
+
|
| 254 |
+
Please create a professional, engaging, and irresistible offer that:
|
| 255 |
+
1. Highlights the value proposition based on the skills/product/service provided
|
| 256 |
+
2. Addresses the specific pain points of the analyzed avatar
|
| 257 |
+
3. Creates urgency and desire
|
| 258 |
+
4. STRICTLY follows the structure format of the examples above
|
| 259 |
|
| 260 |
IMPORTANT: Provide ONLY the final offer text. Do not include any explanations, labels, formatting instructions, brackets, or call to action at the end."""
|
| 261 |
|