debisoft commited on
Commit
8f5936f
·
1 Parent(s): c95c31a
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -18,11 +18,8 @@ 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
- return json.dumps(company)
 
22
 
23
- #iface = gr.Interface(fn=greet, inputs="text", outputs="text")
24
- #iface.launch()
25
-
26
- #iface = gr.Interface(fn=greet, inputs=[gr.Textbox(label="Text to find entities", lines=2)], outputs=[gr.HighlightedText(label="Text with entities")], title="NER with dslim/bert-base-NER", description="Find entities using the `dslim/bert-base-NER` model under the hood!", allow_flagging="never", examples=["My name is Andrew and I live in California", "My name is Poli and work at HuggingFace"])
27
  iface = gr.Interface(fn=greet, inputs=[gr.Textbox(label="Company"), gr.Textbox(label="Solution"), gr.Textbox(label="Customer"), gr.Textbox(label="Problem"), gr.Textbox(label="Feature")], outputs="json")
28
  iface.launch()
 
18
  return response.choices[0].message["content"]
19
 
20
  def greet(company, solution, customer, problem, features):
21
+ pitch = f"""My company, {company} is developing {solution} to help {target_customer} {problem} with {features}"""
22
+ return json.dumps(pitch)
23
 
 
 
 
 
24
  iface = gr.Interface(fn=greet, inputs=[gr.Textbox(label="Company"), gr.Textbox(label="Solution"), gr.Textbox(label="Customer"), gr.Textbox(label="Problem"), gr.Textbox(label="Feature")], outputs="json")
25
  iface.launch()