Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
26 |
outputs="text",
|
27 |
title="Speech to Text"
|
28 |
)
|
29 |
|
30 |
iface_s2st = gr.Interface(
|
31 |
fn=speech_to_speech_translation,
|
32 |
-
|
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 |
)
|