debisoft commited on
Commit
c8691ae
·
1 Parent(s): 0e43f0b

1st Prompt!

Browse files
Files changed (1) hide show
  1. app.py +5 -3
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 list of items separated by commas.
 
25
 
26
  Text sample: '''{input}'''
27
  """
28
  response = get_completion(prompt)
29
- return "Hello " + response + "!!"
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()