Skip to content

Commit

Permalink
create transcript folder if it does not exist yet
Browse files Browse the repository at this point in the history
  • Loading branch information
souzatharsis committed Oct 27, 2024
1 parent 3a6a058 commit 367082e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions podcastfy/content_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,16 @@ def __init__(
self.content_generator_config = self.config.get("content_generator", {})

self.config_conversation = load_conversation_config(conversation_config)
self.tts_config = self.conversation_config.get('text_to_speech', {})

# Get output directories from conversation config
self.output_directories = self.tts_config.get('output_directories', {})

# Create output directories if they don't exist
transcripts_dir = self.output_directories.get('transcripts')

if transcripts_dir and not os.path.exists(transcripts_dir):
os.makedirs(transcripts_dir)

def __compose_prompt(self, num_images: int):
"""
Expand Down

0 comments on commit 367082e

Please sign in to comment.