Update app.py
Browse files
app.py
CHANGED
|
@@ -25,7 +25,7 @@ def scrape_content(url):
|
|
| 25 |
|
| 26 |
# Function to create newsletter using OpenAI
|
| 27 |
def create_newsletter(contents):
|
| 28 |
-
prompt = "Create a newsletter in
|
| 29 |
for content in contents:
|
| 30 |
title, body, url = content
|
| 31 |
prompt += f"Title: {title}\nURL: {url}\n\n{body}\n\n"
|
|
|
|
| 25 |
|
| 26 |
# Function to create newsletter using OpenAI
|
| 27 |
def create_newsletter(contents):
|
| 28 |
+
prompt = "Create a newsletter for Readers of The Tamil News Site The Hindu Tamil(https://www.hindutamil.in/) in Tamil with the following content:\n\n"
|
| 29 |
for content in contents:
|
| 30 |
title, body, url = content
|
| 31 |
prompt += f"Title: {title}\nURL: {url}\n\n{body}\n\n"
|