leofltt commited on
Commit
3fdca71
·
verified ·
1 Parent(s): 7f18a5d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -47,7 +47,7 @@ demo = gr.Blocks()
47
 
48
  mic_translate = gr.Interface(
49
  fn=speech_to_speech_translation,
50
- inputs=gr.Audio(source="microphone", type="filepath"),
51
  outputs=gr.Audio(label="Generated Speech", type="numpy"),
52
  title=title,
53
  description=description,
@@ -55,7 +55,7 @@ mic_translate = gr.Interface(
55
 
56
  file_translate = gr.Interface(
57
  fn=speech_to_speech_translation,
58
- inputs=gr.Audio(source="upload", type="filepath"),
59
  outputs=gr.Audio(label="Generated Speech", type="numpy"),
60
  examples=[["./example.wav"]],
61
  title=title,
 
47
 
48
  mic_translate = gr.Interface(
49
  fn=speech_to_speech_translation,
50
+ inputs=gr.Audio(sources="microphone", type="filepath"),
51
  outputs=gr.Audio(label="Generated Speech", type="numpy"),
52
  title=title,
53
  description=description,
 
55
 
56
  file_translate = gr.Interface(
57
  fn=speech_to_speech_translation,
58
+ inputs=gr.Audio(sources="upload", type="filepath"),
59
  outputs=gr.Audio(label="Generated Speech", type="numpy"),
60
  examples=[["./example.wav"]],
61
  title=title,