Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -30,14 +30,14 @@ def transcribe_speech(filepath):
|
|
30 |
# torchaudio.save(filepath, waveform_16k, 16000)
|
31 |
output = pipe(
|
32 |
filepath,
|
33 |
-
max_new_tokens=256,
|
34 |
generate_kwargs={
|
35 |
"task": "transcribe",
|
36 |
# "language": "konkani",
|
37 |
}, # update with the language you've fine-tuned on
|
38 |
chunk_length_s=30,
|
39 |
batch_size=8,
|
40 |
-
sampling_rate=16000,
|
41 |
# padding=True
|
42 |
)
|
43 |
return output["text"]
|
|
|
30 |
# torchaudio.save(filepath, waveform_16k, 16000)
|
31 |
output = pipe(
|
32 |
filepath,
|
33 |
+
# max_new_tokens=256,
|
34 |
generate_kwargs={
|
35 |
"task": "transcribe",
|
36 |
# "language": "konkani",
|
37 |
}, # update with the language you've fine-tuned on
|
38 |
chunk_length_s=30,
|
39 |
batch_size=8,
|
40 |
+
# sampling_rate=16000,
|
41 |
# padding=True
|
42 |
)
|
43 |
return output["text"]
|