app.py
CHANGED
@@ -18,7 +18,6 @@ def get_completion(prompt, model="gpt-3.5-turbo"):
|
|
18 |
return response.choices[0].message["content"]
|
19 |
|
20 |
def greet(company, solution, target_customer, problem, features):
|
21 |
-
pitch = f"""My company, {company} is developing {solution} to help {target_customer} {problem} with {features}"""
|
22 |
prompt = f"""
|
23 |
Determine the product or solution, the problem being solved, features, target customer that are being discussed in the \
|
24 |
following text, which is delimited by triple backticks. Then, pretend that you are the target customer. \
|
@@ -27,7 +26,7 @@ State if you would use this product and elaborate on why. Also state if you woul
|
|
27 |
Format your response as a JSON object with \
|
28 |
'solution', 'problem', 'features', 'target_customer', 'fg_will_use', 'reason_to_use', 'fg_will_pay', 'reason_to_pay' as the keys.\
|
29 |
|
30 |
-
Text sample: '''{
|
31 |
"""
|
32 |
response = get_completion(prompt)
|
33 |
return json.dumps(response)
|
|
|
18 |
return response.choices[0].message["content"]
|
19 |
|
20 |
def greet(company, solution, target_customer, problem, features):
|
|
|
21 |
prompt = f"""
|
22 |
Determine the product or solution, the problem being solved, features, target customer that are being discussed in the \
|
23 |
following text, which is delimited by triple backticks. Then, pretend that you are the target customer. \
|
|
|
26 |
Format your response as a JSON object with \
|
27 |
'solution', 'problem', 'features', 'target_customer', 'fg_will_use', 'reason_to_use', 'fg_will_pay', 'reason_to_pay' as the keys.\
|
28 |
|
29 |
+
Text sample: '''{problem}'''
|
30 |
"""
|
31 |
response = get_completion(prompt)
|
32 |
return json.dumps(response)
|