Irpan
commited on
Commit
•
b1e229a
1
Parent(s):
0e8c610
app
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ with gr.Blocks() as app:
|
|
47 |
# Output Column
|
48 |
with gr.Column(scale=1):
|
49 |
# Group transcripts together
|
50 |
-
with gr.Group(
|
51 |
with gr.Row():
|
52 |
transcript_ugArab_box = gr.Textbox(
|
53 |
label="ASR Transcript (Uyghur Arabic)",
|
@@ -60,7 +60,7 @@ with gr.Blocks() as app:
|
|
60 |
)
|
61 |
|
62 |
# Group correct and user pronunciation
|
63 |
-
with gr.Group(
|
64 |
with gr.Row():
|
65 |
correct_pronunciation_box = gr.Textbox(
|
66 |
label="Correct Pronunciation",
|
@@ -72,14 +72,29 @@ with gr.Blocks() as app:
|
|
72 |
placeholder="IPA representation of your pronunciation..."
|
73 |
)
|
74 |
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
|
84 |
# Bind functions to buttons
|
85 |
generate_btn.click(
|
|
|
47 |
# Output Column
|
48 |
with gr.Column(scale=1):
|
49 |
# Group transcripts together
|
50 |
+
with gr.Group():
|
51 |
with gr.Row():
|
52 |
transcript_ugArab_box = gr.Textbox(
|
53 |
label="ASR Transcript (Uyghur Arabic)",
|
|
|
60 |
)
|
61 |
|
62 |
# Group correct and user pronunciation
|
63 |
+
with gr.Group():
|
64 |
with gr.Row():
|
65 |
correct_pronunciation_box = gr.Textbox(
|
66 |
label="Correct Pronunciation",
|
|
|
72 |
placeholder="IPA representation of your pronunciation..."
|
73 |
)
|
74 |
|
75 |
+
with gr.Group():
|
76 |
+
with gr.Row():
|
77 |
+
match_box = gr.Textbox(
|
78 |
+
label="Phonetic Match",
|
79 |
+
placeholder="Matching and mismatched characters visualized here..."
|
80 |
+
)
|
81 |
+
with gr.Row():
|
82 |
+
score_box = gr.Textbox(
|
83 |
+
label="Phonetic Score",
|
84 |
+
placeholder="Your pronunciation score as a percentage..."
|
85 |
+
)
|
86 |
+
|
87 |
+
with gr.Group():
|
88 |
+
with gr.Row():
|
89 |
+
match_box = gr.Textbox(
|
90 |
+
label="Phonetic Match",
|
91 |
+
placeholder="Matching and mismatched characters visualized here..."
|
92 |
+
)
|
93 |
+
with gr.Row():
|
94 |
+
score_box = gr.Textbox(
|
95 |
+
label="Phonetic Score",
|
96 |
+
placeholder="Your pronunciation score as a percentage..."
|
97 |
+
)
|
98 |
|
99 |
# Bind functions to buttons
|
100 |
generate_btn.click(
|