Update app.py
Browse files
app.py
CHANGED
|
@@ -33,7 +33,7 @@ def create_newsletter(contents):
|
|
| 33 |
response = openai.chat.completions.create(
|
| 34 |
model="gpt-4o-mini",
|
| 35 |
messages=[
|
| 36 |
-
{"role": "system", "content": "You are a helpful assistant."},
|
| 37 |
{"role": "user", "content": prompt}
|
| 38 |
]
|
| 39 |
)
|
|
@@ -70,7 +70,7 @@ iface = gr.Interface(
|
|
| 70 |
gr.Textbox(label="URL 5")
|
| 71 |
],
|
| 72 |
outputs="html",
|
| 73 |
-
title="The
|
| 74 |
description="Enter up to 5 URLs to generate a newsletter,copy paste from the right onto your notepad/cms tool to edit and work further."
|
| 75 |
)
|
| 76 |
|
|
|
|
| 33 |
response = openai.chat.completions.create(
|
| 34 |
model="gpt-4o-mini",
|
| 35 |
messages=[
|
| 36 |
+
{"role": "system", "content": "You are a helpful assistant and en expert in making Newsletters for the Electric Vehicle Community AmpSphere."},
|
| 37 |
{"role": "user", "content": prompt}
|
| 38 |
]
|
| 39 |
)
|
|
|
|
| 70 |
gr.Textbox(label="URL 5")
|
| 71 |
],
|
| 72 |
outputs="html",
|
| 73 |
+
title="The AmpSphere Newsletter Generator",
|
| 74 |
description="Enter up to 5 URLs to generate a newsletter,copy paste from the right onto your notepad/cms tool to edit and work further."
|
| 75 |
)
|
| 76 |
|