app.py
CHANGED
@@ -32,7 +32,7 @@ Format your response as a JSON object with \
|
|
32 |
'solution', 'problem', 'features', 'target_customer', 'fg_will_use', 'reason_to_use', 'fg_will_pay', 'reason_to_pay', 'score' as the keys.
|
33 |
"""
|
34 |
messages = [{'role':'system', 'content':"You are " + customer_persona + "."}, {'role':'system', 'content': sys_setup}, {'role':'user','content':pitch}]
|
35 |
-
response = get_completion_from_messages(messages, temperature=
|
36 |
return json.dumps(response)
|
37 |
|
38 |
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")
|
|
|
32 |
'solution', 'problem', 'features', 'target_customer', 'fg_will_use', 'reason_to_use', 'fg_will_pay', 'reason_to_pay', 'score' as the keys.
|
33 |
"""
|
34 |
messages = [{'role':'system', 'content':"You are " + customer_persona + "."}, {'role':'system', 'content': sys_setup}, {'role':'user','content':pitch}]
|
35 |
+
response = get_completion_from_messages(messages, temperature=0)
|
36 |
return json.dumps(response)
|
37 |
|
38 |
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")
|