Spaces:
Runtime error
Runtime error
Commit
·
098ca99
1
Parent(s):
855340c
add envi traslation
Browse files
app.py
CHANGED
@@ -177,7 +177,7 @@ with gr.Blocks() as demo:
|
|
177 |
with gr.TabItem("Speech2text and Vi-En Translation"):
|
178 |
with gr.Row():
|
179 |
with gr.Column():
|
180 |
-
vi_audio = gr.Audio(source="microphone", label="Input Audio", type="file", streaming=False)
|
181 |
translate_button_vien_2 = gr.Button(value="Translate To English")
|
182 |
with gr.Column():
|
183 |
english_out_2 = gr.Textbox(label="English Text")
|
@@ -200,10 +200,10 @@ with gr.Blocks() as demo:
|
|
200 |
with gr.TabItem("Speech2text and En-Vi Translation"):
|
201 |
with gr.Row():
|
202 |
with gr.Column():
|
203 |
-
en_audio = gr.Audio(source="microphone", label="Input Audio", type="filepath", streaming=False)
|
204 |
translate_button_envi_2 = gr.Button(value="Translate To Vietnamese")
|
205 |
with gr.Column():
|
206 |
-
vietnamese_out_2 = gr.Textbox(label="
|
207 |
|
208 |
translate_button_envi_2.click(lambda en_voice: inference_envi(en_voice), inputs=en_audio, outputs=vietnamese_out_2)
|
209 |
gr.Examples(examples=en_example_voice,
|
|
|
177 |
with gr.TabItem("Speech2text and Vi-En Translation"):
|
178 |
with gr.Row():
|
179 |
with gr.Column():
|
180 |
+
vi_audio = gr.Audio(source="microphone", label="Input Vietnamese Audio", type="file", streaming=False)
|
181 |
translate_button_vien_2 = gr.Button(value="Translate To English")
|
182 |
with gr.Column():
|
183 |
english_out_2 = gr.Textbox(label="English Text")
|
|
|
200 |
with gr.TabItem("Speech2text and En-Vi Translation"):
|
201 |
with gr.Row():
|
202 |
with gr.Column():
|
203 |
+
en_audio = gr.Audio(source="microphone", label="Input English Audio", type="filepath", streaming=False)
|
204 |
translate_button_envi_2 = gr.Button(value="Translate To Vietnamese")
|
205 |
with gr.Column():
|
206 |
+
vietnamese_out_2 = gr.Textbox(label="Vietnamese Text")
|
207 |
|
208 |
translate_button_envi_2.click(lambda en_voice: inference_envi(en_voice), inputs=en_audio, outputs=vietnamese_out_2)
|
209 |
gr.Examples(examples=en_example_voice,
|