Spaces:
Running
Running
Olaolu Olugbenle
commited on
Commit
·
ba87ed4
1
Parent(s):
0ad9c5b
fixed translation input mode bugs
Browse files
app.py
CHANGED
|
@@ -316,21 +316,22 @@ with gr.Blocks(title="Olùkọ́ | Learn Yoruba") as app:
|
|
| 316 |
value="Yoruba → English",
|
| 317 |
label="Direction"
|
| 318 |
)
|
|
|
|
| 319 |
|
| 320 |
-
|
| 321 |
-
|
| 322 |
-
|
| 323 |
-
|
| 324 |
-
|
| 325 |
-
|
| 326 |
-
)
|
| 327 |
|
| 328 |
-
|
| 329 |
-
|
| 330 |
-
|
| 331 |
-
|
| 332 |
-
|
| 333 |
-
|
|
|
|
| 334 |
|
| 335 |
#Store translation textbox + TTS model in same row
|
| 336 |
with gr.Row():
|
|
|
|
| 316 |
value="Yoruba → English",
|
| 317 |
label="Direction"
|
| 318 |
)
|
| 319 |
+
with gr.Row():
|
| 320 |
|
| 321 |
+
# single editable textbox + microphone next to it
|
| 322 |
+
#User input textbox
|
| 323 |
+
output_transcription = gr.Textbox(
|
| 324 |
+
label="✍️ Speak/Type...",
|
| 325 |
+
interactive=True
|
| 326 |
+
)
|
|
|
|
| 327 |
|
| 328 |
+
# User input microphone
|
| 329 |
+
mic_recorder = gr.Audio(
|
| 330 |
+
sources="microphone",
|
| 331 |
+
type="filepath",
|
| 332 |
+
label="🎙️",
|
| 333 |
+
show_label=True
|
| 334 |
+
)
|
| 335 |
|
| 336 |
#Store translation textbox + TTS model in same row
|
| 337 |
with gr.Row():
|