19 unmodified lines202122232425268 unmodified lines353637383919 unmodified lines)return response.choices[0].message["content"]def greet(company, solution, target_customer, problem, features, customer_persona="the target customer"):pitch = f"""My company, {company} is developing {solution} to help {target_customer} {problem} with {features}"""sys_setup = f"""Determine the product or solution, the problem being solved, features, target customer that are being discussed in the \8 unmodified linesresponse = get_completion_from_messages(messages, temperature=0)return json.dumps(response)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"), gr.Textbox(label="Customer persona", lines=3)], outputs="json")iface.launch()19 unmodified lines202122232425268 unmodified lines353637383919 unmodified lines)return response.choices[0].message["content"]def greet(company, solution, target_customer, problem, features, audience_persona="the target customer"):pitch = f"""My company, {company} is developing {solution} to help {target_customer} {problem} with {features}"""sys_setup = f"""Determine the product or solution, the problem being solved, features, target customer that are being discussed in the \8 unmodified linesresponse = get_completion_from_messages(messages, temperature=0)return json.dumps(response)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"), gr.Textbox(label="Target Audience persona", lines=3)], outputs="json")iface.launch()
app.py+2-2