app.py
CHANGED
|
@@ -17,14 +17,14 @@ def get_completion(prompt, model="gpt-3.5-turbo"):
|
|
| 17 |
)
|
| 18 |
return response.choices[0].message["content"]
|
| 19 |
|
| 20 |
-
def greet(company, solution,
|
| 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. \
|
| 24 |
State if you would use this product and elaborate on why. Also state if you would pay for it and elaborate on why.\
|
| 25 |
|
| 26 |
Format your response as a JSON object with \
|
| 27 |
-
'solution', 'problem', 'features', '
|
| 28 |
|
| 29 |
Text sample: '''{problem}'''
|
| 30 |
"""
|
|
|
|
| 17 |
)
|
| 18 |
return response.choices[0].message["content"]
|
| 19 |
|
| 20 |
+
def greet(company, solution, 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. \
|
| 24 |
State if you would use this product and elaborate on why. Also state if you would pay for it and elaborate on why.\
|
| 25 |
|
| 26 |
Format your response as a JSON object with \
|
| 27 |
+
'solution', 'problem', 'features', 'customer', 'fg_will_use', 'reason_to_use', 'fg_will_pay', 'reason_to_pay' as the keys.\
|
| 28 |
|
| 29 |
Text sample: '''{problem}'''
|
| 30 |
"""
|