Spaces:
Runtime error
Runtime error
Update
Browse files
app.py
CHANGED
@@ -143,12 +143,12 @@ with gr.Blocks() as demo_s2st:
|
|
143 |
with gr.Row():
|
144 |
with gr.Column():
|
145 |
with gr.Group():
|
|
|
146 |
target_language = gr.Dropdown(
|
147 |
label="Target language",
|
148 |
choices=S2ST_TARGET_LANGUAGE_NAMES,
|
149 |
value=DEFAULT_TARGET_LANGUAGE,
|
150 |
)
|
151 |
-
input_audio = gr.Audio(label="Input speech", type="filepath")
|
152 |
btn = gr.Button("Translate")
|
153 |
with gr.Column():
|
154 |
with gr.Group():
|
@@ -185,12 +185,12 @@ with gr.Blocks() as demo_s2tt:
|
|
185 |
with gr.Row():
|
186 |
with gr.Column():
|
187 |
with gr.Group():
|
|
|
188 |
target_language = gr.Dropdown(
|
189 |
label="Target language",
|
190 |
choices=S2TT_TARGET_LANGUAGE_NAMES,
|
191 |
value=DEFAULT_TARGET_LANGUAGE,
|
192 |
)
|
193 |
-
input_audio = gr.Audio(label="Input speech", type="filepath")
|
194 |
btn = gr.Button("Translate")
|
195 |
with gr.Column():
|
196 |
output_text = gr.Textbox(label="Translated text")
|
@@ -220,6 +220,7 @@ with gr.Blocks() as demo_t2st:
|
|
220 |
with gr.Row():
|
221 |
with gr.Column():
|
222 |
with gr.Group():
|
|
|
223 |
with gr.Row():
|
224 |
source_language = gr.Dropdown(
|
225 |
label="Source language",
|
@@ -231,7 +232,6 @@ with gr.Blocks() as demo_t2st:
|
|
231 |
choices=T2ST_TARGET_LANGUAGE_NAMES,
|
232 |
value=DEFAULT_TARGET_LANGUAGE,
|
233 |
)
|
234 |
-
input_text = gr.Textbox(label="Input text")
|
235 |
btn = gr.Button("Translate")
|
236 |
with gr.Column():
|
237 |
with gr.Group():
|
@@ -285,6 +285,7 @@ with gr.Blocks() as demo_t2tt:
|
|
285 |
with gr.Row():
|
286 |
with gr.Column():
|
287 |
with gr.Group():
|
|
|
288 |
with gr.Row():
|
289 |
source_language = gr.Dropdown(
|
290 |
label="Source language",
|
@@ -296,7 +297,6 @@ with gr.Blocks() as demo_t2tt:
|
|
296 |
choices=T2TT_TARGET_LANGUAGE_NAMES,
|
297 |
value=DEFAULT_TARGET_LANGUAGE,
|
298 |
)
|
299 |
-
input_text = gr.Textbox(label="Input text")
|
300 |
btn = gr.Button("Translate")
|
301 |
with gr.Column():
|
302 |
output_text = gr.Textbox(label="Translated text")
|
@@ -343,12 +343,12 @@ with gr.Blocks() as demo_asr:
|
|
343 |
with gr.Row():
|
344 |
with gr.Column():
|
345 |
with gr.Group():
|
|
|
346 |
target_language = gr.Dropdown(
|
347 |
label="Target language",
|
348 |
choices=ASR_TARGET_LANGUAGE_NAMES,
|
349 |
value=DEFAULT_TARGET_LANGUAGE,
|
350 |
)
|
351 |
-
input_audio = gr.Audio(label="Input speech", type="filepath")
|
352 |
btn = gr.Button("Translate")
|
353 |
with gr.Column():
|
354 |
output_text = gr.Textbox(label="Translated text")
|
|
|
143 |
with gr.Row():
|
144 |
with gr.Column():
|
145 |
with gr.Group():
|
146 |
+
input_audio = gr.Audio(label="Input speech", type="filepath")
|
147 |
target_language = gr.Dropdown(
|
148 |
label="Target language",
|
149 |
choices=S2ST_TARGET_LANGUAGE_NAMES,
|
150 |
value=DEFAULT_TARGET_LANGUAGE,
|
151 |
)
|
|
|
152 |
btn = gr.Button("Translate")
|
153 |
with gr.Column():
|
154 |
with gr.Group():
|
|
|
185 |
with gr.Row():
|
186 |
with gr.Column():
|
187 |
with gr.Group():
|
188 |
+
input_audio = gr.Audio(label="Input speech", type="filepath")
|
189 |
target_language = gr.Dropdown(
|
190 |
label="Target language",
|
191 |
choices=S2TT_TARGET_LANGUAGE_NAMES,
|
192 |
value=DEFAULT_TARGET_LANGUAGE,
|
193 |
)
|
|
|
194 |
btn = gr.Button("Translate")
|
195 |
with gr.Column():
|
196 |
output_text = gr.Textbox(label="Translated text")
|
|
|
220 |
with gr.Row():
|
221 |
with gr.Column():
|
222 |
with gr.Group():
|
223 |
+
input_text = gr.Textbox(label="Input text")
|
224 |
with gr.Row():
|
225 |
source_language = gr.Dropdown(
|
226 |
label="Source language",
|
|
|
232 |
choices=T2ST_TARGET_LANGUAGE_NAMES,
|
233 |
value=DEFAULT_TARGET_LANGUAGE,
|
234 |
)
|
|
|
235 |
btn = gr.Button("Translate")
|
236 |
with gr.Column():
|
237 |
with gr.Group():
|
|
|
285 |
with gr.Row():
|
286 |
with gr.Column():
|
287 |
with gr.Group():
|
288 |
+
input_text = gr.Textbox(label="Input text")
|
289 |
with gr.Row():
|
290 |
source_language = gr.Dropdown(
|
291 |
label="Source language",
|
|
|
297 |
choices=T2TT_TARGET_LANGUAGE_NAMES,
|
298 |
value=DEFAULT_TARGET_LANGUAGE,
|
299 |
)
|
|
|
300 |
btn = gr.Button("Translate")
|
301 |
with gr.Column():
|
302 |
output_text = gr.Textbox(label="Translated text")
|
|
|
343 |
with gr.Row():
|
344 |
with gr.Column():
|
345 |
with gr.Group():
|
346 |
+
input_audio = gr.Audio(label="Input speech", type="filepath")
|
347 |
target_language = gr.Dropdown(
|
348 |
label="Target language",
|
349 |
choices=ASR_TARGET_LANGUAGE_NAMES,
|
350 |
value=DEFAULT_TARGET_LANGUAGE,
|
351 |
)
|
|
|
352 |
btn = gr.Button("Translate")
|
353 |
with gr.Column():
|
354 |
output_text = gr.Textbox(label="Translated text")
|