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