incomestreamsurfer / autoblogger Goto Github PK
View Code? Open in Web Editor NEWThis is an autoblogger that uses the ChatGPT API and Stable Diffusion API to create fully optimized blog posts and post them automatically to wordpress
This is an autoblogger that uses the ChatGPT API and Stable Diffusion API to create fully optimized blog posts and post them automatically to wordpress
Hi
I use my own script, where most of it is generated by AI or taken from files. I use prompts:
system_prompt = (f"Never mention blog post. Write an FULL blog post using the {outline}. Internal links are vital to SEO. Please always include a maximum 5 a href internal links contextually in the article, not just at the end. NEVER USE PLACEHOLDERS. ALWAYS WRITE THE WHOLE ARTICLE IN FULL. Always include 5 internal links. Output in HTML. Write an article using {outline} with 3 paragraphs per heading. Each heading of the blog post should have at least one list or table (with a small black border, and border between the rows and columns) also. It will go onto WordPress, so I don't need opening HTML tags. Create relative links using the following relative links contextually throughout the article. Use a maximum of 5:{relative_links}. Place 5 hashtags in the appropriate places, preferably so that they blend in with the surrounding text:{hashtags_gpt}. Settle the centred images from the list in the most appropriate places, use only the URL of the image, underneath the image in a very small font like 5px place a referral link centred with the image, which corresponds to this image, leave the referral link as it is created, only reduce its size:{pictures}. ALWAYS WRITE a complete blog post. WE WILL NOT COMPLETE ARTICLES LATER, WE ONLY SEND COMPLETE ARTICLES.")
user_prompt = (f"ALWAYS write the entire thing, ALWAYS write a complete blog post. Make sure all content is relevant to the article. Use a fun tone of voice. Always include at least 5 internal links. Each heading from the blog post outline should have at least 3 paragraphs and a table or list after writing the post, before you start, think about how to write an article so that it is ALWAYS complete, fits the outline, and contains all the necessary details. Settle the centred images from the list in the most appropriate places, use only the URL of the image, underneath the image in a very small font like 5px place a referral link centred with the image, which corresponds to this image, leave the referral link as it is created, only reduce its size:{pictures}.")
Even so, it does not always add images or links.
Any ideas? I use to generate this gpt-4
Many thanks,
BaGRoS
I face this error when was running the test.py.
After some troubleshooting i found the function (generate_featured_image) is expecting two parameters
def generate_featured_image(text, meta_title):
But only one is sent
featured_image = generate_featured_image( meta_title)
I make it work replacing the text with url_slug
and adding that parameter to the calling function
def generate_featured_image(url_slug, meta_title):
featured_image = generate_featured_image(url_slug, meta_title)
If you wanted i can do a PR to fix this issue.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.