aar2dee2 commited on
Commit
4246859
·
1 Parent(s): 7bb2b6f

fix gradio type error

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -118,7 +118,7 @@ description = "Darth Vader resurrected with all the knowledge of humanity"
118
  mic_translate = gr.Interface(
119
  fn=main,
120
  inputs=gr.Audio(source="microphone", type="filepath"),
121
- outputs=gr.Audio(label="Generated Speech", type="wav"),
122
  title=title,
123
  description=description,
124
  )
@@ -126,7 +126,7 @@ mic_translate = gr.Interface(
126
  file_translate = gr.Interface(
127
  fn=main,
128
  inputs=gr.Audio(source="upload", type="filepath"),
129
- outputs=gr.Audio(label="Generated Speech", type="wav"),
130
  examples=[["./data/example/strauss-oppenheimer.wav"]],
131
  title=title,
132
  description=description,
 
118
  mic_translate = gr.Interface(
119
  fn=main,
120
  inputs=gr.Audio(source="microphone", type="filepath"),
121
+ outputs=gr.Audio(label="Generated Speech", type="filepath"),
122
  title=title,
123
  description=description,
124
  )
 
126
  file_translate = gr.Interface(
127
  fn=main,
128
  inputs=gr.Audio(source="upload", type="filepath"),
129
+ outputs=gr.Audio(label="Generated Speech", type="filepath"),
130
  examples=[["./data/example/strauss-oppenheimer.wav"]],
131
  title=title,
132
  description=description,