Spaces:
Running
Running
Update post_blog.py
Browse files- post_blog.py +1 -1
post_blog.py
CHANGED
@@ -31,7 +31,7 @@ def generate_image(title, summary, category):
|
|
31 |
extracted_summary = extract_summary(summary)
|
32 |
if extracted_summary is None:
|
33 |
extracted_summary = title
|
34 |
-
url = f"https://image.pollinations.ai/prompt/
|
35 |
data = requests.get(url).content
|
36 |
encoded_image = base64.b64encode(data)
|
37 |
image = encoded_image.decode('utf-8')
|
|
|
31 |
extracted_summary = extract_summary(summary)
|
32 |
if extracted_summary is None:
|
33 |
extracted_summary = title
|
34 |
+
url = f"https://image.pollinations.ai/prompt/{title}%20%3A%20{extracted_summary}?width=1280&height=720&seed=623862700&nologo=true&model=turbo"
|
35 |
data = requests.get(url).content
|
36 |
encoded_image = base64.b64encode(data)
|
37 |
image = encoded_image.decode('utf-8')
|