recycleactor commited on
Commit
9fcc86f
·
verified ·
1 Parent(s): 75b4d64

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -80,7 +80,7 @@ def transcribe(audio_path: str) -> str:
80
  chunks: list[str] = []
81
  try:
82
  chunks = _split_into_chunks(wav_path)
83
- parts = [MODEL.transcribe(chunk).strip() for chunk in chunks]
84
  return " ".join(p for p in parts if p).strip()
85
  finally:
86
  os.remove(wav_path)
 
80
  chunks: list[str] = []
81
  try:
82
  chunks = _split_into_chunks(wav_path)
83
+ parts = [str(MODEL.transcribe(chunk)).strip() for chunk in chunks]
84
  return " ".join(p for p in parts if p).strip()
85
  finally:
86
  os.remove(wav_path)