OrbiSubs: fixed punctuated prompt (self-prompt dropped punctuation), README
This commit is contained in:
+5
-1
@@ -26,6 +26,10 @@ import numpy as np
|
||||
|
||||
SR = 16000
|
||||
WRAP = 2 ** 33 / 90000.0
|
||||
# Prompt fijo y bien puntuado. Antes se pasaba el propio texto anterior y, en cuanto
|
||||
# whisper soltaba una frase sin puntos, se autoalimentaba: a los minutos todo salía
|
||||
# en minúsculas y sin puntuación (T13, 2026-11-16), y el traductor no podía cortar frases.
|
||||
PROMPT = "Hola, buenas noches. Estas son las noticias de T13, en Santiago de Chile."
|
||||
|
||||
|
||||
def log(msg, **kw):
|
||||
@@ -189,7 +193,7 @@ class Transcriptor:
|
||||
limite = fin if forzar else fin - self.hold
|
||||
a = time.time()
|
||||
palabras = [(self.t0 + w0, self.t0 + w1, txt)
|
||||
for w0, w1, txt in self.model(self.buf, self.contexto[-200:] or None)]
|
||||
for w0, w1, txt in self.model(self.buf, PROMPT)]
|
||||
dt = time.time() - a
|
||||
conf = [w for w in palabras if w[1] <= limite]
|
||||
pend = [w for w in palabras if w[1] > limite]
|
||||
|
||||
Reference in New Issue
Block a user