VinayHajare
commited on
Update app.py
Browse filesChanges accord
app.py
CHANGED
@@ -52,7 +52,7 @@ demo = gr.Blocks()
|
|
52 |
|
53 |
mic_translate = gr.Interface(
|
54 |
fn=speech_to_speech_translation,
|
55 |
-
inputs=[gr.Audio(
|
56 |
gr.inputs.Radio(["Male", "Female"], label="Voice", default="Male")],
|
57 |
outputs=gr.Audio(label="Generated Speech", type="numpy"),
|
58 |
title=title,
|
@@ -62,7 +62,7 @@ mic_translate = gr.Interface(
|
|
62 |
|
63 |
file_translate = gr.Interface(
|
64 |
fn=speech_to_speech_translation,
|
65 |
-
inputs=[gr.Audio(
|
66 |
gr.inputs.Radio(["Male", "Female"], label="Voice", default="Male")],
|
67 |
outputs=gr.Audio(label="Generated Speech", type="numpy"),
|
68 |
title=title,
|
|
|
52 |
|
53 |
mic_translate = gr.Interface(
|
54 |
fn=speech_to_speech_translation,
|
55 |
+
inputs=[gr.Audio(sources="microphone", type="filepath"),
|
56 |
gr.inputs.Radio(["Male", "Female"], label="Voice", default="Male")],
|
57 |
outputs=gr.Audio(label="Generated Speech", type="numpy"),
|
58 |
title=title,
|
|
|
62 |
|
63 |
file_translate = gr.Interface(
|
64 |
fn=speech_to_speech_translation,
|
65 |
+
inputs=[gr.Audio(sources="upload", type="filepath"),
|
66 |
gr.inputs.Radio(["Male", "Female"], label="Voice", default="Male")],
|
67 |
outputs=gr.Audio(label="Generated Speech", type="numpy"),
|
68 |
title=title,
|