BlogGenerator
- class essence_extractor.src.BlogGenerator(model_name='gpt-3.5-turbo-1106', output_path='blogs', cost_manager=None)
Generate a blog post from a text file.
- model_name
The name of the model to use.
- Type:
str
- output_path
The path to the output directory.
- Type:
str
- cost_manager
The cost manager.
- Type:
- add_image_placeholder(blog_content)
Adds image placeholder to the blog content.
- Parameters:
blog_content (str) – The blog content.
- Returns:
The blog content with image placeholders.
- Return type:
str
- generate_article_content(text_file_path)
Generate a blog post from a text file.
- Parameters:
text_file_path (str) – The path to the text file.
- Returns:
The path to the generated blog post.
- Return type:
str