zorand666 commited on
Commit
3c62862
·
verified ·
1 Parent(s): 114f72c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -61,12 +61,12 @@ def transcribe():
61
 
62
  #transcribe audio using Whisper
63
  try:
64
- result = model.transcribe(
65
- wav_path,
66
- language="bs",
67
- fp16=False,
68
- word_timestamps=True
69
- )
70
  except RuntimeError as e:
71
  print(f"Alignment failed: {e}. Falling back to no word timestamps.")
72
  result = model.transcribe(
 
61
 
62
  #transcribe audio using Whisper
63
  try:
64
+ result = model.transcribe(
65
+ wav_path,
66
+ language="bs",
67
+ fp16=False,
68
+ word_timestamps=True
69
+ )
70
  except RuntimeError as e:
71
  print(f"Alignment failed: {e}. Falling back to no word timestamps.")
72
  result = model.transcribe(