debisoft commited on
Commit
c0a6075
·
1 Parent(s): 54c0786
Files changed (1) hide show
  1. app.py +1 -11
app.py CHANGED
@@ -18,17 +18,7 @@ def get_completion(prompt, model="gpt-3.5-turbo"):
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
- """
31
- response = get_completion(prompt)
32
  return json.dumps(response)
33
 
34
  #iface = gr.Interface(fn=greet, inputs="text", outputs="text")
 
18
  return response.choices[0].message["content"]
19
 
20
  def greet(company, solution, customer, problem, features):
21
+ respone = company
 
 
 
 
 
 
 
 
 
 
22
  return json.dumps(response)
23
 
24
  #iface = gr.Interface(fn=greet, inputs="text", outputs="text")