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