Using the amazing AI power of GPT2 and Python you can generate your own blog posts using a technique called Text Generation. This can be extended out to a whole heap of different use cases, it could be used to write emails, poems, code. You name it, you could probably do it.
In this case, we’re focused on blog posts though. You’ll be able to pass through a simple sentence and have a whole chunk of text output that you can then use on your blog!
In this video, you’ll learn how to:
Chapters:
0:00 - Start
3:34 - Installing Hugging Face Transformers with Python
4:03 - Importing GPT2
5:23 - Loading the GPT2-Large Model and Tokenizer
8:39 - Tokenizing Sentences for AI Text Generation
10:57 - Generating Text using GPT2-Large
11:50 - Decoding Generated Text
14:13 - Outputting Results to .txt files
16:11 - Generating Longer Blog Posts
Get the code: https://github.com/nicknochnack/Generating-Blog-Posts-with-GPT-2-Large
Subscribe: https://www.youtube.com/channel/UCHXa4OpASJEwrHrLeIzw7Yg
#machine-learning #gpt2 #python