Commit
·
6a04ddb
1
Parent(s):
aa4d259
only print translated text not timestamps
Browse files- whisper_online.py +3 -3
whisper_online.py
CHANGED
@@ -534,9 +534,9 @@ class OnlineASRProcessor:
|
|
534 |
o = self.transcript_buffer.flush()
|
535 |
self.commited.extend(o)
|
536 |
completed = self.to_flush(o)
|
537 |
-
logger.debug(f">>>>COMPLETE NOW: {completed}")
|
538 |
the_rest = self.to_flush(self.transcript_buffer.complete())
|
539 |
-
logger.debug(f"INCOMPLETE: {the_rest}")
|
540 |
|
541 |
# there is a newly confirmed text
|
542 |
|
@@ -572,7 +572,7 @@ class OnlineASRProcessor:
|
|
572 |
def chunk_completed_sentence(self):
|
573 |
if self.commited == []:
|
574 |
return
|
575 |
-
logger.debug(self.commited)
|
576 |
sents = self.words_to_sentences(self.commited)
|
577 |
for s in sents:
|
578 |
logger.debug(f"\t\tSENT: {s}")
|
|
|
534 |
o = self.transcript_buffer.flush()
|
535 |
self.commited.extend(o)
|
536 |
completed = self.to_flush(o)
|
537 |
+
logger.debug(f">>>>COMPLETE NOW: {completed[2]}")
|
538 |
the_rest = self.to_flush(self.transcript_buffer.complete())
|
539 |
+
logger.debug(f"INCOMPLETE: {the_rest[2]}")
|
540 |
|
541 |
# there is a newly confirmed text
|
542 |
|
|
|
572 |
def chunk_completed_sentence(self):
|
573 |
if self.commited == []:
|
574 |
return
|
575 |
+
logger.debug("COMPLETED SENTENCE: ", [s[2] for s in self.commited])
|
576 |
sents = self.words_to_sentences(self.commited)
|
577 |
for s in sents:
|
578 |
logger.debug(f"\t\tSENT: {s}")
|