HamzaSidhu786
commited on
Commit
•
36924f5
1
Parent(s):
0b7affd
Update app.py
Browse files
app.py
CHANGED
@@ -56,7 +56,7 @@ demo = gr.Blocks()
|
|
56 |
|
57 |
mic_translate = gr.Interface(
|
58 |
fn=speech_to_speech_translation,
|
59 |
-
inputs=gr.Audio(
|
60 |
outputs=gr.Audio(label="Generated Speech", type="numpy"),
|
61 |
title=title,
|
62 |
description=description,
|
@@ -64,7 +64,7 @@ mic_translate = gr.Interface(
|
|
64 |
|
65 |
file_translate = gr.Interface(
|
66 |
fn=speech_to_speech_translation,
|
67 |
-
inputs=gr.Audio(
|
68 |
outputs=gr.Audio(label="Generated Speech", type="numpy"),
|
69 |
examples=[["./example.wav"]],
|
70 |
title=title,
|
|
|
56 |
|
57 |
mic_translate = gr.Interface(
|
58 |
fn=speech_to_speech_translation,
|
59 |
+
inputs=gr.Audio(sources="microphone", type="filepath"),
|
60 |
outputs=gr.Audio(label="Generated Speech", type="numpy"),
|
61 |
title=title,
|
62 |
description=description,
|
|
|
64 |
|
65 |
file_translate = gr.Interface(
|
66 |
fn=speech_to_speech_translation,
|
67 |
+
inputs=gr.Audio(sources="upload", type="filepath"),
|
68 |
outputs=gr.Audio(label="Generated Speech", type="numpy"),
|
69 |
examples=[["./example.wav"]],
|
70 |
title=title,
|