Oysiyl commited on
Commit
c7932cb
1 Parent(s): b76d03c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=[ukr_text], apply_sbd=True)[0][0]
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