zongxiao commited on
Commit
3907e87
·
1 Parent(s): 9e2b006

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -71,7 +71,10 @@ demo = gr.Blocks()
71
  mic_translate = gr.Interface(
72
  fn=speech_to_speech_translation_fix,
73
  inputs=gr.Audio(source="microphone", type="filepath"),
74
- outputs=gr.Audio(label="Generated Speech", type="numpy"),
 
 
 
75
  title=title,
76
  description=description,
77
  )
@@ -79,7 +82,10 @@ mic_translate = gr.Interface(
79
  file_translate = gr.Interface(
80
  fn=speech_to_speech_translation_fix,
81
  inputs=gr.Audio(source="upload", type="filepath"),
82
- outputs=gr.Audio(label="Generated Speech", type="numpy"),
 
 
 
83
  examples=examples,
84
  title=title,
85
  description=description,
 
71
  mic_translate = gr.Interface(
72
  fn=speech_to_speech_translation_fix,
73
  inputs=gr.Audio(source="microphone", type="filepath"),
74
+ outputs=[
75
+ gr.Audio(label="Generated Speech", type="numpy"),
76
+ gr.Text(label="Transcription"),
77
+ ],
78
  title=title,
79
  description=description,
80
  )
 
82
  file_translate = gr.Interface(
83
  fn=speech_to_speech_translation_fix,
84
  inputs=gr.Audio(source="upload", type="filepath"),
85
+ outputs=[
86
+ gr.Audio(label="Generated Speech", type="numpy"),
87
+ gr.Text(label="Transcription"),
88
+ ],
89
  examples=examples,
90
  title=title,
91
  description=description,