Spaces:
Sleeping
Sleeping
Update third.py
Browse files
third.py
CHANGED
|
@@ -105,7 +105,7 @@ async def main(editable_output2, keyword_id):
|
|
| 105 |
research_summary = "\n".join(research_results) # 調査結果をまとめる
|
| 106 |
user_message = {
|
| 107 |
"role": "user",
|
| 108 |
-
"content": f'"{h1_text}"という記事タイトルに沿った導入文を日本語で作成し
|
| 109 |
}
|
| 110 |
|
| 111 |
# Generate a new text using the ChatCompletion API
|
|
|
|
| 105 |
research_summary = "\n".join(research_results) # 調査結果をまとめる
|
| 106 |
user_message = {
|
| 107 |
"role": "user",
|
| 108 |
+
"content": f'"{h1_text}"という記事タイトルに沿った導入文を日本語で作成し、各見出し"{", ".join(h2_texts)}"についての導入文を作成してください。導入文はそれぞれの見出しの直下にある"{", ".join(h3_texts)}"の内容を考慮に入れて作成してください。その後、"{", ".join(h3_texts)}"についての本文を作成してください。各セクションは、読者の興味を引き、記事の主題を明確に示すものであるべきです。最後に、記事全体のまとめ、<h2>まとめ</h2>としてクローズしてください。以下に取得した情報を示します:{research_summary}'
|
| 109 |
}
|
| 110 |
|
| 111 |
# Generate a new text using the ChatCompletion API
|