Commit
·
b27d944
1
Parent(s):
b28d750
Update app.py
Browse files
app.py
CHANGED
@@ -57,7 +57,7 @@ demo = gr.Blocks()
|
|
57 |
|
58 |
mic_translate = gr.Interface(
|
59 |
fn=speech_to_speech_translation,
|
60 |
-
inputs=gr.Audio(type="filepath"),
|
61 |
outputs=gr.Audio(label="Generated Speech", type="numpy"),
|
62 |
title=title,
|
63 |
description=description,
|
@@ -65,9 +65,9 @@ mic_translate = gr.Interface(
|
|
65 |
|
66 |
file_translate = gr.Interface(
|
67 |
fn=speech_to_speech_translation,
|
68 |
-
inputs=gr.Audio(type="filepath"),
|
69 |
outputs=gr.Audio(label="Generated Speech", type="numpy"),
|
70 |
-
examples=[["
|
71 |
title=title,
|
72 |
description=description,
|
73 |
)
|
|
|
57 |
|
58 |
mic_translate = gr.Interface(
|
59 |
fn=speech_to_speech_translation,
|
60 |
+
inputs=gr.Audio(source="microphone", type="filepath"),
|
61 |
outputs=gr.Audio(label="Generated Speech", type="numpy"),
|
62 |
title=title,
|
63 |
description=description,
|
|
|
65 |
|
66 |
file_translate = gr.Interface(
|
67 |
fn=speech_to_speech_translation,
|
68 |
+
inputs=gr.Audio(source="upload", type="filepath"),
|
69 |
outputs=gr.Audio(label="Generated Speech", type="numpy"),
|
70 |
+
examples=[["./example.wav"]],
|
71 |
title=title,
|
72 |
description=description,
|
73 |
)
|