Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -106,8 +106,8 @@ examples = [
|
|
106 |
|
107 |
demo = gr.Blocks()
|
108 |
|
109 |
-
#
|
110 |
-
|
111 |
fn=speech_to_speech_translation,
|
112 |
inputs=gr.Audio(source="microphone", type="filepath"),
|
113 |
outputs=gr.Audio(label="Generated Speech", type="numpy"),
|
@@ -116,7 +116,7 @@ mic_translate = gr.Interface(
|
|
116 |
)
|
117 |
|
118 |
# File translation using uploaded files as input
|
119 |
-
|
120 |
fn=speech_to_speech_translation,
|
121 |
inputs=gr.Audio(source="upload", type="filepath"),
|
122 |
outputs=gr.Audio(label="Generated Speech", type="numpy"),
|
|
|
106 |
|
107 |
demo = gr.Blocks()
|
108 |
|
109 |
+
# Audio translation using microphone as the input
|
110 |
+
audio_translate = gr.Interface(
|
111 |
fn=speech_to_speech_translation,
|
112 |
inputs=gr.Audio(source="microphone", type="filepath"),
|
113 |
outputs=gr.Audio(label="Generated Speech", type="numpy"),
|
|
|
116 |
)
|
117 |
|
118 |
# File translation using uploaded files as input
|
119 |
+
file_translate = gr.Interface(
|
120 |
fn=speech_to_speech_translation,
|
121 |
inputs=gr.Audio(source="upload", type="filepath"),
|
122 |
outputs=gr.Audio(label="Generated Speech", type="numpy"),
|