Update app.py
Browse files
app.py
CHANGED
@@ -95,10 +95,14 @@ playground = gr.Blocks()
|
|
95 |
with playground:
|
96 |
with gr.Row():
|
97 |
with gr.Column():
|
98 |
-
input_audio = gr.Audio(sources=["microphone"], type="filepath", label="Input Audio")
|
99 |
-
transcipted_text = gr.Textbox(label="Transcription")
|
100 |
with gr.Column():
|
101 |
-
translated_speech = gr.Audio(type="filepath", label="Generated Speech")
|
|
|
|
|
|
|
|
|
|
|
102 |
translated_text = gr.Textbox(label="Translation")
|
103 |
|
104 |
with gr.Row():
|
@@ -107,6 +111,6 @@ with playground:
|
|
107 |
with gr.Column():
|
108 |
clear_button = gr.ClearButton(components=[input_audio, transcipted_text, translated_speech, translated_text], value="Clear")
|
109 |
|
110 |
-
submit_button.click(start_process, inputs=[input_audio], outputs=[transcipted_text,
|
111 |
|
112 |
playground.launch()
|
|
|
95 |
with playground:
|
96 |
with gr.Row():
|
97 |
with gr.Column():
|
98 |
+
input_audio = gr.Audio(sources=["microphone"], type="filepath", label="Input Audio")
|
|
|
99 |
with gr.Column():
|
100 |
+
translated_speech = gr.Audio(type="filepath", label="Generated Speech")
|
101 |
+
|
102 |
+
with gr.Row():
|
103 |
+
with gr.Column():
|
104 |
+
transcipted_text = gr.Textbox(label="Transcription")
|
105 |
+
with gr.Column():
|
106 |
translated_text = gr.Textbox(label="Translation")
|
107 |
|
108 |
with gr.Row():
|
|
|
111 |
with gr.Column():
|
112 |
clear_button = gr.ClearButton(components=[input_audio, transcipted_text, translated_speech, translated_text], value="Clear")
|
113 |
|
114 |
+
submit_button.click(start_process, inputs=[input_audio], outputs=[transcipted_text, translated_text, translated_speech])
|
115 |
|
116 |
playground.launch()
|