app.py
CHANGED
|
@@ -33,7 +33,7 @@ Format your response as a JSON object with \
|
|
| 33 |
"""
|
| 34 |
messages = [{'role':'system', 'content':"You are " + target_audience_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"), gr.Textbox(label="Target Audience persona", lines=3)], outputs="json")
|
| 39 |
iface.launch()
|
|
|
|
| 33 |
"""
|
| 34 |
messages = [{'role':'system', 'content':"You are " + target_audience_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"), gr.Textbox(label="Target Audience persona", lines=3)], outputs="json")
|
| 39 |
iface.launch()
|