Irpan
commited on
Commit
·
293f2a1
1
Parent(s):
5a4ac64
app
Browse files
app.py
CHANGED
@@ -19,24 +19,25 @@ with gr.Blocks() as app:
|
|
19 |
# Input Column
|
20 |
with gr.Column(scale=1):
|
21 |
with gr.Row():
|
22 |
-
input_text = gr.Textbox(
|
23 |
-
label="Input Uyghur Text to Pronounce",
|
24 |
-
placeholder="Enter Uyghur text here...",
|
25 |
-
)
|
26 |
script_choice = gr.Radio(
|
27 |
-
choices=["Arabic
|
28 |
-
label="Input
|
29 |
value="Arabic Script"
|
30 |
)
|
|
|
|
|
|
|
|
|
31 |
with gr.Row():
|
32 |
-
example_audio = gr.Audio(label="Example Pronunciation", interactive=False)
|
33 |
generate_btn = gr.Button("Generate Example Pronunciation")
|
34 |
with gr.Row():
|
35 |
user_audio = gr.Audio(
|
36 |
-
label="Your Pronunciation",
|
37 |
sources=["microphone", "upload"],
|
38 |
type="filepath",
|
39 |
)
|
|
|
40 |
check_btn = gr.Button("Check My Pronunciation")
|
41 |
|
42 |
# Output Column
|
|
|
19 |
# Input Column
|
20 |
with gr.Column(scale=1):
|
21 |
with gr.Row():
|
|
|
|
|
|
|
|
|
22 |
script_choice = gr.Radio(
|
23 |
+
choices=["Uyghur Arabic", "Uyghur Latin"],
|
24 |
+
label="1. Select Input Script",
|
25 |
value="Arabic Script"
|
26 |
)
|
27 |
+
input_text = gr.Textbox(
|
28 |
+
label="2. Input Uyghur Text to Pronounce",
|
29 |
+
placeholder="Enter Uyghur text here...",
|
30 |
+
)
|
31 |
with gr.Row():
|
32 |
+
example_audio = gr.Audio(label="3. Click Generate Example Pronunciation", interactive=False)
|
33 |
generate_btn = gr.Button("Generate Example Pronunciation")
|
34 |
with gr.Row():
|
35 |
user_audio = gr.Audio(
|
36 |
+
label="4. Record Your Pronunciation",
|
37 |
sources=["microphone", "upload"],
|
38 |
type="filepath",
|
39 |
)
|
40 |
+
with gr.Row():
|
41 |
check_btn = gr.Button("Check My Pronunciation")
|
42 |
|
43 |
# Output Column
|