Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ def transcribe(audio):
|
|
14 |
if sr != 16000:
|
15 |
y = librosa.resample(y, orig_sr=sr, target_sr=16000)
|
16 |
transcribed_text = transcriber({"sampling_rate": 16000, "raw": y})["text"]
|
17 |
-
punct_cap_text = punct_cap_model.infer(texts=[
|
18 |
return punct_cap_text
|
19 |
|
20 |
|
|
|
14 |
if sr != 16000:
|
15 |
y = librosa.resample(y, orig_sr=sr, target_sr=16000)
|
16 |
transcribed_text = transcriber({"sampling_rate": 16000, "raw": y})["text"]
|
17 |
+
punct_cap_text = punct_cap_model.infer(texts=[transcribed_text], apply_sbd=True)[0][0]
|
18 |
return punct_cap_text
|
19 |
|
20 |
|