Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,26 +15,14 @@ def generate_template(ref1, ref2, ref3, ref4, ref5):
|
|
| 15 |
|
| 16 |
# Build a detailed prompt with properly escaped curly braces for literal output.
|
| 17 |
prompt = f"""
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
3. **Control Structures:**
|
| 28 |
-
- Enclosed in `{{% %}}` tags to iterate over lists (for example, to generate a bulleted list of features).
|
| 29 |
-
|
| 30 |
-
4. **Instructions and Modifiers:**
|
| 31 |
-
- Include clear guidance for tone, style, and length (e.g., `motivational, passionate, 1-2 sentences`).
|
| 32 |
-
|
| 33 |
-
Your generated template should include:
|
| 34 |
-
- A header section.
|
| 35 |
-
- An introduction block.
|
| 36 |
-
- An example control structure for iterating over features.
|
| 37 |
-
- A conclusion block.
|
| 38 |
|
| 39 |
**Reference Copy:**
|
| 40 |
{combined_references}
|
|
|
|
| 15 |
|
| 16 |
# Build a detailed prompt with properly escaped curly braces for literal output.
|
| 17 |
prompt = f"""
|
| 18 |
+
I need you to help me create a template that will allow us to generate the same style of e-commerce copy as the reference(s) included below.
|
| 19 |
+
Step 1:
|
| 20 |
+
Analyse what parts the references are created from. Are there specific bullet point? Are features mentioned in a specific order? What kinds of text and features are mentioned?
|
| 21 |
+
Step 2:
|
| 22 |
+
For each of those parts, break down the tone of voice, the cadence and rythm, and the perspective of the writing.
|
| 23 |
+
For each part, also see if there is a common length and strucutre.
|
| 24 |
+
Step 3:
|
| 25 |
+
Describe each of the parts, so a skilled copywriter could take those and use them as instructions to write about another product
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
|
| 27 |
**Reference Copy:**
|
| 28 |
{combined_references}
|