Spaces:
Build error
Build error
Commit
·
deaedfd
1
Parent(s):
6bd937a
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,7 +34,7 @@ def transcribe(file_mic, file_upload, target_language):
|
|
| 34 |
|
| 35 |
input_values = process_audio_file(file)
|
| 36 |
|
| 37 |
-
sequences = model.generate(input_values, forced_bos_token_id=forced_bos_token_id, num_beams=1, max_length=30)
|
| 38 |
|
| 39 |
transcription = tokenizer.batch_decode(sequences, skip_special_tokens=True)
|
| 40 |
return warn_output + transcription[0]
|
|
|
|
| 34 |
|
| 35 |
input_values = process_audio_file(file)
|
| 36 |
|
| 37 |
+
sequences = model.generate(input_values, forced_bos_token_id=forced_bos_token_id, num_beams=1, max_length=30)
|
| 38 |
|
| 39 |
transcription = tokenizer.batch_decode(sequences, skip_special_tokens=True)
|
| 40 |
return warn_output + transcription[0]
|