1st Prompt!
Browse files
app.py
CHANGED
|
@@ -19,14 +19,16 @@ def get_completion(prompt, model="gpt-3.5-turbo"):
|
|
| 19 |
def greet(input):
|
| 20 |
prompt = f"""
|
| 21 |
Determine the product or solution, the problem being solved, features, target customer that are being discussed in the \
|
| 22 |
-
following text, which is delimited by triple backticks.
|
|
|
|
| 23 |
|
| 24 |
-
Format your response as a
|
|
|
|
| 25 |
|
| 26 |
Text sample: '''{input}'''
|
| 27 |
"""
|
| 28 |
response = get_completion(prompt)
|
| 29 |
-
return
|
| 30 |
|
| 31 |
#iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 32 |
#iface.launch()
|
|
|
|
| 19 |
def greet(input):
|
| 20 |
prompt = f"""
|
| 21 |
Determine the product or solution, the problem being solved, features, target customer that are being discussed in the \
|
| 22 |
+
following text, which is delimited by triple backticks. Then, pretend that you are the target customer.
|
| 23 |
+
State if you would use this product and elaborate on why.\
|
| 24 |
|
| 25 |
+
Format your response as a JSON object with \
|
| 26 |
+
"solution", "problem", "features", "target_customer", "fg_will_use", "reason" as the keys.
|
| 27 |
|
| 28 |
Text sample: '''{input}'''
|
| 29 |
"""
|
| 30 |
response = get_completion(prompt)
|
| 31 |
+
return response
|
| 32 |
|
| 33 |
#iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 34 |
#iface.launch()
|