Skip to content

Commit

Permalink
refactor: Refactor conditional logic in transcription process.
Browse files Browse the repository at this point in the history
- Refactor conditional logic in `cli.py`
- Improve readability by moving `transcription.process_audio_files` call inside a conditional block
  • Loading branch information
johnnyhuy committed May 19, 2024
1 parent e9e28b1 commit a8c12a1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions transcribe_me/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ def main():
config_manager.archive_files(args.input, args.output)
return

if args.command == "only":
transcription.process_audio_files(input_folder, output_folder, config)
return

config = config_manager.load_config()

input_folder = args.input
output_folder = args.output

if args.command == "only":
transcription.process_audio_files(input_folder, output_folder, config)
return

transcription.process_audio_files(input_folder, output_folder, config)
summarizer.generate_summaries(input_folder, output_folder, config)

Expand Down

0 comments on commit a8c12a1

Please sign in to comment.