Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -31,8 +31,8 @@ def speech_to_speech_translation(audio_data, tgt_lang):
|
|
31 |
iface_s2t = gr.Interface(
|
32 |
fn=speech_to_text,
|
33 |
inputs=[
|
34 |
-
gr.
|
35 |
-
gr.
|
36 |
],
|
37 |
outputs="text",
|
38 |
title="Speech to Text"
|
@@ -41,8 +41,8 @@ iface_s2t = gr.Interface(
|
|
41 |
iface_s2st = gr.Interface(
|
42 |
fn=speech_to_speech_translation,
|
43 |
inputs=[
|
44 |
-
gr.
|
45 |
-
gr.
|
46 |
],
|
47 |
outputs=["text", "audio"],
|
48 |
title="Speech to Speech Translation"
|
|
|
31 |
iface_s2t = gr.Interface(
|
32 |
fn=speech_to_text,
|
33 |
inputs=[
|
34 |
+
gr.Audio(label="Upload or Record Audio for Speech to Text"),
|
35 |
+
gr.Dropdown(list(languages.keys()), label="Select Target Language")
|
36 |
],
|
37 |
outputs="text",
|
38 |
title="Speech to Text"
|
|
|
41 |
iface_s2st = gr.Interface(
|
42 |
fn=speech_to_speech_translation,
|
43 |
inputs=[
|
44 |
+
gr.Audio(label="Upload or Record Audio for Speech to Speech Translation"),
|
45 |
+
gr.Dropdown(list(languages.keys()), label="Select Target Language")
|
46 |
],
|
47 |
outputs=["text", "audio"],
|
48 |
title="Speech to Speech Translation"
|