Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -47,7 +47,7 @@ demo = gr.Blocks()
|
|
| 47 |
|
| 48 |
mic_translate = gr.Interface(
|
| 49 |
fn=speech_to_speech_translation,
|
| 50 |
-
inputs=gr.Audio(
|
| 51 |
outputs=gr.Audio(label="Generated Speech", type="numpy"),
|
| 52 |
title=title,
|
| 53 |
description=description,
|
|
@@ -55,7 +55,7 @@ mic_translate = gr.Interface(
|
|
| 55 |
|
| 56 |
file_translate = gr.Interface(
|
| 57 |
fn=speech_to_speech_translation,
|
| 58 |
-
inputs=gr.Audio(
|
| 59 |
outputs=gr.Audio(label="Generated Speech", type="numpy"),
|
| 60 |
examples=[["./example.wav"]],
|
| 61 |
title=title,
|
|
|
|
| 47 |
|
| 48 |
mic_translate = gr.Interface(
|
| 49 |
fn=speech_to_speech_translation,
|
| 50 |
+
inputs=gr.Audio(source="microphone", type="filepath"),
|
| 51 |
outputs=gr.Audio(label="Generated Speech", type="numpy"),
|
| 52 |
title=title,
|
| 53 |
description=description,
|
|
|
|
| 55 |
|
| 56 |
file_translate = gr.Interface(
|
| 57 |
fn=speech_to_speech_translation,
|
| 58 |
+
inputs=gr.Audio(source="upload", type="filepath"),
|
| 59 |
outputs=gr.Audio(label="Generated Speech", type="numpy"),
|
| 60 |
examples=[["./example.wav"]],
|
| 61 |
title=title,
|