zongxiao commited on
Commit
c8b6b18
1 Parent(s): 98d1415

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -56,8 +56,8 @@ demo = gr.Blocks()
56
  Muti_translate=gr.Interface(
57
  fn=speech_to_speech_translation_fix,
58
  inputs=[
59
- gr.Audio(label="Upload Speech", source="upload", type="numpy"),
60
- gr.Audio(label="Record Speech", source="microphone", type="numpy"),
61
  ],
62
  outputs=[
63
  gr.Audio(label="Generated Speech", type="numpy"),
@@ -80,7 +80,7 @@ Muti_translate=gr.Interface(
80
  # fn=speech_to_speech_translation_fix,
81
  # inputs=gr.Audio(source="upload", type="filepath"),
82
  # outputs=gr.Audio(label="Generated Speech", type="numpy"),
83
- # examples=examples,
84
  # title=title,
85
  # description=description,
86
  # )
 
56
  Muti_translate=gr.Interface(
57
  fn=speech_to_speech_translation_fix,
58
  inputs=[
59
+ gr.Audio(label="Upload Speech", source="upload", type="filepath"),
60
+ gr.Audio(label="Record Speech", source="microphone", type="filepath"),
61
  ],
62
  outputs=[
63
  gr.Audio(label="Generated Speech", type="numpy"),
 
80
  # fn=speech_to_speech_translation_fix,
81
  # inputs=gr.Audio(source="upload", type="filepath"),
82
  # outputs=gr.Audio(label="Generated Speech", type="numpy"),
83
+ # examples=examples,
84
  # title=title,
85
  # description=description,
86
  # )