Got rid of mic translation since it is not working, and only file upload is needed for the space
Browse files
app.py
CHANGED
|
@@ -56,13 +56,13 @@ Demo for cascaded speech-to-speech translation (STST), mapping from English to D
|
|
| 56 |
|
| 57 |
demo = gr.Blocks()
|
| 58 |
|
| 59 |
-
mic_translate = gr.Interface(
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
)
|
| 66 |
|
| 67 |
file_translate = gr.Interface(
|
| 68 |
fn=speech_to_speech_translation,
|
|
@@ -74,6 +74,6 @@ file_translate = gr.Interface(
|
|
| 74 |
)
|
| 75 |
|
| 76 |
with demo:
|
| 77 |
-
gr.TabbedInterface([
|
| 78 |
|
| 79 |
demo.launch()
|
|
|
|
| 56 |
|
| 57 |
demo = gr.Blocks()
|
| 58 |
|
| 59 |
+
# mic_translate = gr.Interface(
|
| 60 |
+
# fn=speech_to_speech_translation,
|
| 61 |
+
# inputs=gr.Audio(sources=["microphone"], type="filepath"),
|
| 62 |
+
# outputs=gr.Audio(label="Generated Speech", type="numpy"),
|
| 63 |
+
# title=title,
|
| 64 |
+
# description=description,
|
| 65 |
+
# )
|
| 66 |
|
| 67 |
file_translate = gr.Interface(
|
| 68 |
fn=speech_to_speech_translation,
|
|
|
|
| 74 |
)
|
| 75 |
|
| 76 |
with demo:
|
| 77 |
+
gr.TabbedInterface([file_translate], ["Audio File"])
|
| 78 |
|
| 79 |
demo.launch()
|