EwoutLagendijk commited on
Commit
e0b9aa2
·
verified ·
1 Parent(s): b20efae

Update app.py

Browse files

fix syntax error

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