Spaces:
Sleeping
Sleeping
Ankit Singh
commited on
Commit
·
984e43e
1
Parent(s):
6e73026
Updated prompt
Browse files
app.py
CHANGED
@@ -28,26 +28,23 @@ def generate_blog_content(topic, api_key):
|
|
28 |
client = Groq(api_key=api_key)
|
29 |
|
30 |
prompt = f"""Generate a blog post on '{topic}' with the following structure:
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
7. Avoid single-word headings and ensure every paragraph adds informative value.
|
39 |
8. FAQs should address potential reader questions based on the main content.
|
40 |
-
|
41 |
-
**Example:**
|
42 |
<section>
|
43 |
<h2>Overview of [Medical Condition]</h2>
|
44 |
<p>Explanation with <strong>key terms</strong> highlighted...</p>
|
45 |
</section>
|
46 |
-
|
47 |
<section>
|
48 |
<h2>FAQs</h2>
|
49 |
<h3>What causes [Medical Condition]?</h3>
|
50 |
-
<p>A clear, accurate answer with <strong>relevant terms</strong> highlighted.</p>
|
51 |
<h3>How is [Medical Condition] treated?</h3>
|
52 |
<p>Explanation of treatment options, with <strong>important terms</strong> highlighted...</p>
|
53 |
</section>
|
|
|
28 |
client = Groq(api_key=api_key)
|
29 |
|
30 |
prompt = f"""Generate a blog post on '{topic}' with the following structure:
|
31 |
+
1. Create 20 sections, with a FAQs section as the last one.
|
32 |
+
2. Use <section> tags for sections, with <h2> for headings and <p> for content.
|
33 |
+
3. If there are sub-headings under an <h2> tag, use <h3> for those sub-headings (e.g., in FAQs or where additional structure is needed).
|
34 |
+
4. Highlight key terms or keywords with <strong> tags or <b> tag for clarity and easy to read.
|
35 |
+
5. Each section should be 150-200 words and directly relate to the topic, with no unnecessary unasked responses.
|
36 |
+
6. Write in a formal tone suitable for a professional medical audience.
|
37 |
+
7. Avoid single-word or two word headings (H2 TAG) , make every h2 tag should contain keywords and ensure every paragraph adds informative value.
|
|
|
38 |
8. FAQs should address potential reader questions based on the main content.
|
39 |
+
Example:
|
|
|
40 |
<section>
|
41 |
<h2>Overview of [Medical Condition]</h2>
|
42 |
<p>Explanation with <strong>key terms</strong> highlighted...</p>
|
43 |
</section>
|
|
|
44 |
<section>
|
45 |
<h2>FAQs</h2>
|
46 |
<h3>What causes [Medical Condition]?</h3>
|
47 |
+
<p>A clear, accurate answer with <strong>relevant terms</strong> highlighted. And <strong>Keywords</strong> should also be highlited to Optime page SEO but dont make it too dense.</p>
|
48 |
<h3>How is [Medical Condition] treated?</h3>
|
49 |
<p>Explanation of treatment options, with <strong>important terms</strong> highlighted...</p>
|
50 |
</section>
|