DEBUG stderr
parent
0e6c12a94f
commit
465193b60d
|
|
@ -116,6 +116,7 @@ class Parser(threading.Thread):
|
|||
proc = subprocess.run(f"MODEL=./models/ggml-{os.environ.get('MODEL','tiny.en')}.bin WAV={p} P=2 rust-whisper", capture_output=True, shell=True)
|
||||
result = proc.stdout.decode().strip()
|
||||
if os.environ.get("DEBUG", None):
|
||||
log("stderr:", proc.stderr.decode().strip())
|
||||
log("raw transcript:", result)
|
||||
result = result.replace(">>", "")
|
||||
result = "".join([i.split("]")[-1] for i in result.split("[")[0]])
|
||||
|
|
|
|||
Loading…
Reference in New Issue