Sandiago21 commited on
Commit
02e8cdb
1 Parent(s): 2841a93

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -49,7 +49,7 @@ def synthesize_speech(text):
49
  return gr.Audio.update(value=(16000, speech.cpu().numpy()))
50
 
51
  def translate(audio):
52
- outputs = asr_pipe(audio, max_new_tokens=256, generate_kwargs={"task": "transcribe", "language": "italian"})
53
  return outputs["text"]
54
 
55
 
 
49
  return gr.Audio.update(value=(16000, speech.cpu().numpy()))
50
 
51
  def translate(audio):
52
+ outputs = asr_pipe(audio, max_new_tokens=256, generate_kwargs={"task": "transcribe", "language": "spanish"})
53
  return outputs["text"]
54
 
55