debisoft commited on
Commit
0e43f0b
·
1 Parent(s): 5cb4b75
Files changed (1) hide show
  1. app.py +5 -7
app.py CHANGED
@@ -17,18 +17,16 @@ def get_completion(prompt, model="gpt-3.5-turbo"):
17
  return response.choices[0].message["content"]
18
 
19
  def greet(input):
20
-
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.
24
 
25
- Format your response as a list of items separated by commas.
26
 
27
- Text sample: '''{input}'''
28
  """
29
  response = get_completion(prompt)
30
-
31
- return "Hello " + response + "!!"
32
 
33
  #iface = gr.Interface(fn=greet, inputs="text", outputs="text")
34
  #iface.launch()
 
17
  return response.choices[0].message["content"]
18
 
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()