KingNish commited on
Commit
f0a7f0d
·
verified ·
1 Parent(s): ea9f05f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -63,7 +63,7 @@ def translate_and_transcribe(inputs, previous_transcription):
63
  sample_rate, audio_data = inputs
64
  scipy.io.wavfile.write(filename, sample_rate, audio_data)
65
 
66
- translation = pipe(filename, language="<|es|>" , generate_kwargs={"task": "translate"} )["text"]
67
 
68
  previous_transcription += translation
69
 
 
63
  sample_rate, audio_data = inputs
64
  scipy.io.wavfile.write(filename, sample_rate, audio_data)
65
 
66
+ translation = pipe(filename, generate_kwargs={"task": "translate", "language": "<|es|>"} )["text"]
67
 
68
  previous_transcription += translation
69