Tonic commited on
Commit
38788fb
Β·
1 Parent(s): 1f6a23e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -22,14 +22,14 @@ def speech_to_speech_translation(audio_file):
22
  # Gradio interfaces
23
  iface_s2t = gr.Interface(
24
  fn=speech_to_text,
25
- inputs=gr.inputs.Audio(type="file", label="Upload Audio for Speech to Text"),
26
  outputs="text",
27
  title="Speech to Text"
28
  )
29
 
30
  iface_s2st = gr.Interface(
31
  fn=speech_to_speech_translation,
32
- inputs=gr.inputs.Audio(type="file", label="Upload Audio for Speech to Speech Translation"),
33
  outputs=["text", "audio"],
34
  title="Speech to Speech Translation"
35
  )
 
22
  # Gradio interfaces
23
  iface_s2t = gr.Interface(
24
  fn=speech_to_text,
25
+ gr.inputs.Audio(type="file", label="Upload Audio for Speech to Text"),
26
  outputs="text",
27
  title="Speech to Text"
28
  )
29
 
30
  iface_s2st = gr.Interface(
31
  fn=speech_to_speech_translation,
32
+ gr.inputs.Audio(type="file", label="Upload Audio for Speech to Speech Translation"),
33
  outputs=["text", "audio"],
34
  title="Speech to Speech Translation"
35
  )