preetam8 commited on
Commit
0b09e6a
·
verified ·
1 Parent(s): f51e742

Update app.py

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