app.py
CHANGED
@@ -20,7 +20,7 @@ def get_completion_from_messages(messages,
|
|
20 |
)
|
21 |
return response.choices[0].message["content"]
|
22 |
|
23 |
-
def greet(company, solution, target_customer, problem, features,
|
24 |
pitch = f"""My company, {company} is developing {solution} to help {target_customer} {problem} with {features}"""
|
25 |
sys_setup = f"""
|
26 |
Determine the product or solution, the problem being solved, features, target customer that are being discussed in the \
|
@@ -31,7 +31,7 @@ Give a score for the product.
|
|
31 |
Format your response as a JSON object with \
|
32 |
'solution', 'problem', 'features', 'target_customer', 'fg_will_use', 'reason_to_use', 'fg_will_pay', 'reason_to_pay', 'fg_will_invest', 'reason_to_invest', 'score' as the keys.
|
33 |
"""
|
34 |
-
messages = [{'role':'system', 'content':"You are " +
|
35 |
response = get_completion_from_messages(messages, temperature=0)
|
36 |
return json.dumps(response)
|
37 |
|
|
|
20 |
)
|
21 |
return response.choices[0].message["content"]
|
22 |
|
23 |
+
def greet(company, solution, target_customer, problem, features, target_audience_persona="the target customer"):
|
24 |
pitch = f"""My company, {company} is developing {solution} to help {target_customer} {problem} with {features}"""
|
25 |
sys_setup = f"""
|
26 |
Determine the product or solution, the problem being solved, features, target customer that are being discussed in the \
|
|
|
31 |
Format your response as a JSON object with \
|
32 |
'solution', 'problem', 'features', 'target_customer', 'fg_will_use', 'reason_to_use', 'fg_will_pay', 'reason_to_pay', 'fg_will_invest', 'reason_to_invest', 'score' as the keys.
|
33 |
"""
|
34 |
+
messages = [{'role':'system', 'content':"You are " + target_audience_persona + "."}, {'role':'system', 'content': sys_setup}, {'role':'user','content':pitch}]
|
35 |
response = get_completion_from_messages(messages, temperature=0)
|
36 |
return json.dumps(response)
|
37 |
|