def save_transcript(prediction, output_file): ## Save prediction to subtitles file format with open(output_file, "w") as f: f.write(prediction)