Update app.py
Browse files
app.py
CHANGED
@@ -362,7 +362,7 @@ HEADERS = {"Authorization": f"Bearer {HF_TOKEN}"}
|
|
362 |
def generate_blog_content(topic):
|
363 |
try:
|
364 |
prompt = f"""Create a detailed, professional blog post about {topic} including:
|
365 |
-
- A compelling title and subtitle
|
366 |
- An introduction
|
367 |
- 3 main sections with descriptive headings
|
368 |
- Key points and data examples in each section
|
@@ -428,8 +428,13 @@ def create_hosted_blog(topic):
|
|
428 |
# Generate and upload images
|
429 |
image_paths = []
|
430 |
image_prompts = [
|
431 |
-
|
432 |
-
|
|
|
|
|
|
|
|
|
|
|
433 |
]
|
434 |
|
435 |
for idx, img_prompt in enumerate(image_prompts):
|
|
|
362 |
def generate_blog_content(topic):
|
363 |
try:
|
364 |
prompt = f"""Create a detailed, professional blog post about {topic} including:
|
365 |
+
- A compelling title and subtitle but dont print this prompt in my website
|
366 |
- An introduction
|
367 |
- 3 main sections with descriptive headings
|
368 |
- Key points and data examples in each section
|
|
|
428 |
# Generate and upload images
|
429 |
image_paths = []
|
430 |
image_prompts = [
|
431 |
+
f"Professional illustration about {topic}, integrating real-world images with clean design and minimalist style. "
|
432 |
+
f"Include conceptual diagrams, flowcharts, or graphs alongside real-world elements to enhance understanding. "
|
433 |
+
f"Use subtle colors, modern typography, and a well-structured layout for clarity and engagement.",
|
434 |
+
|
435 |
+
f"Data visualization or concept diagram related to {topic}, combining infographic elements with real-world scenarios. "
|
436 |
+
f"Ensure a balance of artistic design and informative content, making it suitable for presentations or reports. "
|
437 |
+
f"Include 3D renders or photorealistic overlays to improve visualization."
|
438 |
]
|
439 |
|
440 |
for idx, img_prompt in enumerate(image_prompts):
|