Spaces:
Sleeping
Sleeping
Update formulas.py
Browse files- formulas.py +5 -10
formulas.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
# The function create_offer_instruction remains unchanged
|
2 |
-
import
|
|
|
3 |
|
4 |
# Add this function at the beginning of the file
|
5 |
def create_offer_instruction(avatar_description, product_name, selected_formula_name):
|
@@ -17,12 +18,9 @@ def create_offer_instruction(avatar_description, product_name, selected_formula_
|
|
17 |
# Get the selected formula
|
18 |
selected_formula = offer_formulas[selected_formula_name]
|
19 |
|
20 |
-
#
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
# Format examples
|
25 |
-
examples_text = "\n\n".join([f"Example {i+1}:\n{example}" for i, example in enumerate(random_examples)])
|
26 |
|
27 |
# Add specific instructions for each formula
|
28 |
additional_instructions = ""
|
@@ -140,9 +138,6 @@ FORMULA TO USE:
|
|
140 |
|
141 |
{additional_instructions}
|
142 |
|
143 |
-
EXAMPLES (Use these as inspiration but create something unique):
|
144 |
-
{examples_text}
|
145 |
-
|
146 |
PRODUCT/SERVICE:
|
147 |
{product_name}
|
148 |
|
|
|
1 |
# The function create_offer_instruction remains unchanged
|
2 |
+
# Remove the random import since we no longer need it
|
3 |
+
# import random
|
4 |
|
5 |
# Add this function at the beginning of the file
|
6 |
def create_offer_instruction(avatar_description, product_name, selected_formula_name):
|
|
|
18 |
# Get the selected formula
|
19 |
selected_formula = offer_formulas[selected_formula_name]
|
20 |
|
21 |
+
# No longer need random examples logic
|
22 |
+
# Instead, we'll just set examples_text to an empty string
|
23 |
+
examples_text = ""
|
|
|
|
|
|
|
24 |
|
25 |
# Add specific instructions for each formula
|
26 |
additional_instructions = ""
|
|
|
138 |
|
139 |
{additional_instructions}
|
140 |
|
|
|
|
|
|
|
141 |
PRODUCT/SERVICE:
|
142 |
{product_name}
|
143 |
|