Skip to content

Commit

Permalink
Removed debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanfox5 committed Nov 25, 2024
1 parent 7f7dda7 commit 765f568
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions gogadget/transcriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def stage1_transcription(
results: list[dict] = []
for file_path in input_paths:
CliUtils.print_status(
f"Transcriber: Processing {file_path}, stage 1 of 3, this may take a while depending file length and your computer hardware"
f"Transcriber: Processing {file_path}, stage 1 of 3, this may take a while depending on file length and your computer hardware"
)
audio = whisperx.load_audio(str(file_path.resolve()))
result = model.transcribe(
Expand Down Expand Up @@ -262,10 +262,6 @@ def write_subtitles_anki(
if final_path.exists():
final_path.unlink(missing_ok=True)

print(f"{media_path=}")
print(f"{intermediate_path=}")
print(f"{final_path=}")

CliUtils.print_plain(f"Writing long form subtitles (for Anki use): {final_path}")

# Write subtitles
Expand Down

0 comments on commit 765f568

Please sign in to comment.