thianfoo commited on
Commit
b55a54f
·
verified ·
1 Parent(s): bf4d868

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -97,8 +97,9 @@ demo = gr.Blocks()
97
  # Audio translation using microphone as the input
98
  audio_translate = gr.Interface(
99
  fn=speech_to_speech_translation,
100
- inputs=gr.Audio(source="microphone", type="filepath"),
101
  outputs=gr.Audio(label="Generated Speech", type="numpy"),
 
102
  title=title,
103
  description=description,
104
  )
 
97
  # Audio translation using microphone as the input
98
  audio_translate = gr.Interface(
99
  fn=speech_to_speech_translation,
100
+ inputs=[[gr.Audio(source="microphone", type="filepath")], [gr.Audio(source="upload", type="filepath")]],
101
  outputs=gr.Audio(label="Generated Speech", type="numpy"),
102
+ examples=[["./english.wav"], ["./chinese.wav"]],
103
  title=title,
104
  description=description,
105
  )