thianfoo commited on
Commit
3a5211e
·
verified ·
1 Parent(s): aa27bfe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -106,8 +106,8 @@ examples = [
106
 
107
  demo = gr.Blocks()
108
 
109
- # Mic translation using microphone as the input
110
- mic_translate = gr.Interface(
111
  fn=speech_to_speech_translation,
112
  inputs=gr.Audio(source="microphone", type="filepath"),
113
  outputs=gr.Audio(label="Generated Speech", type="numpy"),
@@ -116,7 +116,7 @@ mic_translate = gr.Interface(
116
  )
117
 
118
  # File translation using uploaded files as input
119
- audio_translate = gr.Interface(
120
  fn=speech_to_speech_translation,
121
  inputs=gr.Audio(source="upload", type="filepath"),
122
  outputs=gr.Audio(label="Generated Speech", type="numpy"),
 
106
 
107
  demo = gr.Blocks()
108
 
109
+ # Audio translation using microphone as the input
110
+ audio_translate = gr.Interface(
111
  fn=speech_to_speech_translation,
112
  inputs=gr.Audio(source="microphone", type="filepath"),
113
  outputs=gr.Audio(label="Generated Speech", type="numpy"),
 
116
  )
117
 
118
  # File translation using uploaded files as input
119
+ file_translate = gr.Interface(
120
  fn=speech_to_speech_translation,
121
  inputs=gr.Audio(source="upload", type="filepath"),
122
  outputs=gr.Audio(label="Generated Speech", type="numpy"),