Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -46,12 +46,14 @@ def transcribe_files(audio_files):
|
|
| 46 |
batch_size=8,
|
| 47 |
return_timestamps=False,
|
| 48 |
generate_kwargs={
|
| 49 |
-
"language": "is",
|
|
|
|
| 50 |
"num_beams": 5,
|
| 51 |
"repetition_penalty": 1.2,
|
| 52 |
"no_repeat_ngram_size": 3,
|
| 53 |
"temperature": 0.0,
|
| 54 |
-
|
|
|
|
| 55 |
)
|
| 56 |
|
| 57 |
with open(txt_path, "w", encoding="utf-8") as f:
|
|
|
|
| 46 |
batch_size=8,
|
| 47 |
return_timestamps=False,
|
| 48 |
generate_kwargs={
|
| 49 |
+
"language": "is", # ← Keep it here for now
|
| 50 |
+
"task": "transcribe", # ← Add this too
|
| 51 |
"num_beams": 5,
|
| 52 |
"repetition_penalty": 1.2,
|
| 53 |
"no_repeat_ngram_size": 3,
|
| 54 |
"temperature": 0.0,
|
| 55 |
+
},
|
| 56 |
+
)
|
| 57 |
)
|
| 58 |
|
| 59 |
with open(txt_path, "w", encoding="utf-8") as f:
|