leofltt commited on
Commit
25c6a90
·
verified ·
1 Parent(s): 99623ea

Update app.py

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