Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -107,7 +107,7 @@ def create_article(length_option, articles, params, web_page_option):
|
|
107 |
messages = [
|
108 |
{
|
109 |
"role": "system",
|
110 |
-
"content": f"You are a professional journalist whose task is to write your own article based on one or more articles. This article should combine the content of the original articles, but have its own writing style, which is as follows: {writing_style} Do not use unusual phrases or neologisms from the original articles.
|
111 |
},
|
112 |
{"role": "system", "content": f"Source articles: {article_string}"},
|
113 |
{
|
|
|
107 |
messages = [
|
108 |
{
|
109 |
"role": "system",
|
110 |
+
"content": f"You are a professional journalist whose task is to write your own article based on one or more articles. This article should combine the content of the original articles, but have its own writing style, which is as follows: {writing_style} Do not use unusual phrases or neologisms from the original articles. It is important that the length of your article should be {length} words long.",
|
111 |
},
|
112 |
{"role": "system", "content": f"Source articles: {article_string}"},
|
113 |
{
|