Skip to content

Commit

Permalink
adding post processing
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-roethig-db committed May 25, 2024
1 parent 1bf907e commit 3db13bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion amondin/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,12 @@ def transcribe(

transcript = pd.DataFrame(segments)

print("Post processing...")
transcript = merge_rows_consecutive_speaker(transcript)

transcript = format_time_stamp(transcript)

# save transcript
print("Saving transcript...")
print(transcript.to_markdown(index=False))
if output_file_path.endswith(".csv"):
transcript.to_csv(output_file_path, index=False, sep=";")
Expand Down

0 comments on commit 3db13bb

Please sign in to comment.