Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ hotwords = [
|
|
12 |
]
|
13 |
|
14 |
def transcribe(audio):
|
15 |
-
transcribed = p(audio, chunk_length_s=16, stride_length_s=(4, 0), decoder_kwargs={"hotwords" :hotwords})["text"]
|
16 |
|
17 |
return transcribed
|
18 |
|
|
|
12 |
]
|
13 |
|
14 |
def transcribe(audio):
|
15 |
+
transcribed = p(audio, chunk_length_s=16, stride_length_s=(4, 0), decoder_kwargs={"hotwords" :hotwords, "hotword_weight": 100})["text"]
|
16 |
|
17 |
return transcribed
|
18 |
|