Update app.py
Browse files
app.py
CHANGED
|
@@ -51,7 +51,7 @@ demo = gr.Blocks()
|
|
| 51 |
|
| 52 |
mic_translate = gr.Interface(
|
| 53 |
fn=speech_to_speech_translation,
|
| 54 |
-
inputs=gr.Audio(
|
| 55 |
outputs=gr.Audio(label="Generated Speech", type="numpy"),
|
| 56 |
title=title,
|
| 57 |
description=description,
|
|
@@ -59,7 +59,7 @@ mic_translate = gr.Interface(
|
|
| 59 |
|
| 60 |
file_translate = gr.Interface(
|
| 61 |
fn=speech_to_speech_translation,
|
| 62 |
-
inputs=gr.Audio(
|
| 63 |
outputs=gr.Audio(label="Generated Speech", type="numpy"),
|
| 64 |
examples=[["./example.wav"]],
|
| 65 |
title=title,
|
|
|
|
| 51 |
|
| 52 |
mic_translate = gr.Interface(
|
| 53 |
fn=speech_to_speech_translation,
|
| 54 |
+
inputs=gr.Audio(sources="microphone", type="filepath"),
|
| 55 |
outputs=gr.Audio(label="Generated Speech", type="numpy"),
|
| 56 |
title=title,
|
| 57 |
description=description,
|
|
|
|
| 59 |
|
| 60 |
file_translate = gr.Interface(
|
| 61 |
fn=speech_to_speech_translation,
|
| 62 |
+
inputs=gr.Audio(sources="upload", type="filepath"),
|
| 63 |
outputs=gr.Audio(label="Generated Speech", type="numpy"),
|
| 64 |
examples=[["./example.wav"]],
|
| 65 |
title=title,
|