Update app.py
Browse files
app.py
CHANGED
@@ -96,13 +96,26 @@ def start_process(audio_filepath):
|
|
96 |
playground = gr.Blocks()
|
97 |
|
98 |
with playground:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
with gr.Row():
|
100 |
with gr.Column():
|
101 |
input_audio = gr.Audio(sources=["microphone"], type="filepath", label="Input Audio")
|
102 |
with gr.Column():
|
103 |
translated_speech = gr.Audio(type="filepath", label="Generated Speech")
|
104 |
|
105 |
-
|
106 |
with gr.Column():
|
107 |
transcipted_text = gr.Textbox(label="Transcription")
|
108 |
with gr.Column():
|
|
|
96 |
playground = gr.Blocks()
|
97 |
|
98 |
with playground:
|
99 |
+
|
100 |
+
with gr.Row():
|
101 |
+
with gr.Column():
|
102 |
+
source_lang = gr.Dropdown(
|
103 |
+
["en", "de", "es", "fr"], value = "en",
|
104 |
+
label="Source Language", info="Will add more language later!"
|
105 |
+
)
|
106 |
+
with gr.Column():
|
107 |
+
target_lang = gr.Dropdown(
|
108 |
+
["en", "de", "es", "fr"], value = "fr",
|
109 |
+
label="Target Language", info="Will add more language later!"
|
110 |
+
)
|
111 |
+
|
112 |
with gr.Row():
|
113 |
with gr.Column():
|
114 |
input_audio = gr.Audio(sources=["microphone"], type="filepath", label="Input Audio")
|
115 |
with gr.Column():
|
116 |
translated_speech = gr.Audio(type="filepath", label="Generated Speech")
|
117 |
|
118 |
+
with gr.Row():
|
119 |
with gr.Column():
|
120 |
transcipted_text = gr.Textbox(label="Transcription")
|
121 |
with gr.Column():
|