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