Update app.py
Browse files
app.py
CHANGED
@@ -60,7 +60,7 @@ demo = gr.Blocks()
|
|
60 |
|
61 |
mic_translate = gr.Interface(
|
62 |
fn=speech_to_speech_translation,
|
63 |
-
inputs=gr.Audio(
|
64 |
outputs=gr.Audio(label="Generated Speech", type="numpy"),
|
65 |
title=title,
|
66 |
description=description,
|
@@ -68,7 +68,7 @@ mic_translate = gr.Interface(
|
|
68 |
|
69 |
file_translate = gr.Interface(
|
70 |
fn=speech_to_speech_translation,
|
71 |
-
inputs=gr.Audio(
|
72 |
outputs=gr.Audio(label="Generated Speech", type="numpy"),
|
73 |
examples=[["./example.wav"]],
|
74 |
title=title,
|
|
|
60 |
|
61 |
mic_translate = gr.Interface(
|
62 |
fn=speech_to_speech_translation,
|
63 |
+
inputs=gr.Audio(sources=["microphone"], type="filepath"),
|
64 |
outputs=gr.Audio(label="Generated Speech", type="numpy"),
|
65 |
title=title,
|
66 |
description=description,
|
|
|
68 |
|
69 |
file_translate = gr.Interface(
|
70 |
fn=speech_to_speech_translation,
|
71 |
+
inputs=gr.Audio(sources=["upload"], type="filepath"),
|
72 |
outputs=gr.Audio(label="Generated Speech", type="numpy"),
|
73 |
examples=[["./example.wav"]],
|
74 |
title=title,
|