Spaces:
Running on Zero
Running on Zero
Upload app.py
Browse files
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)
|