Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -61,12 +61,12 @@ def transcribe():
|
|
| 61 |
|
| 62 |
#transcribe audio using Whisper
|
| 63 |
try:
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 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(
|