thuyentruong commited on
Commit
183519b
1 Parent(s): 506e9f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -23,7 +23,7 @@ speaker_embeddings = torch.tensor(embeddings_dataset[7306]["xvector"]).unsqueeze
23
 
24
  def translate(audio):
25
  outputs = asr_pipe(audio, max_new_tokens=256
26
- , generate_kwargs={"task": "transcribe", "language": "dutch"})
27
  return outputs["text"]
28
 
29
 
@@ -72,4 +72,4 @@ file_translate = gr.Interface(
72
  with demo:
73
  gr.TabbedInterface([mic_translate, file_translate], ["Microphone", "Audio File"])
74
 
75
- demo.launch()
 
23
 
24
  def translate(audio):
25
  outputs = asr_pipe(audio, max_new_tokens=256
26
+ , generate_kwargs={"task": "translate", "language": "dutch"})
27
  return outputs["text"]
28
 
29
 
 
72
  with demo:
73
  gr.TabbedInterface([mic_translate, file_translate], ["Microphone", "Audio File"])
74
 
75
+ demo.launch(share=True)