From a4b2bdc3c16eceb702651ec1a2df5c32e1f07f87 Mon Sep 17 00:00:00 2001 From: Jaikinator Date: Mon, 10 Jul 2023 13:37:48 +0200 Subject: [PATCH] added seq to str --- autotranscript/transcript_exporter.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autotranscript/transcript_exporter.py b/autotranscript/transcript_exporter.py index 2615a67..add3e16 100644 --- a/autotranscript/transcript_exporter.py +++ b/autotranscript/transcript_exporter.py @@ -73,15 +73,15 @@ class Transcript: """ fstring = "" - for id in self.transcript: - seq = self.transcript[id] + for _id in self.transcript: + seq = self.transcript[_id] if self.annotation: speaker = self.annotation[seq["speaker"]] else: speaker = seq["speaker"] - fstring += f"{speaker}: {seq['text']}\n" + fstring += f"{speaker} {seq}: {seq['text']}\n" return fstring def __repr__(self) -> str: