Irpan commited on
Commit
be00192
1 Parent(s): 93e9d4f
Files changed (1) hide show
  1. app.py +15 -15
app.py CHANGED
@@ -20,17 +20,17 @@ with gr.Blocks() as app:
20
  # Input Column
21
  with gr.Column(scale=1):
22
  with gr.Row():
23
- with gr.Column(scale=1): # Script choice takes 1/5th of the row
24
- script_choice = gr.Radio(
25
- choices=["Uyghur Arabic", "Uyghur Latin"],
26
- label="1. Select Input Script",
27
- value="Uyghur Arabic"
28
- )
29
- with gr.Column(scale=4): # Textbox takes the remaining 4/5th
30
- input_text = gr.Textbox(
31
- label="2. Input Uyghur Text to Pronounce",
32
- placeholder="Enter Uyghur text here...",
33
- )
34
  with gr.Row():
35
  example_audio = gr.Audio(label="3. Click Generate Example Pronunciation")
36
  with gr.Row():
@@ -50,13 +50,13 @@ with gr.Blocks() as app:
50
  with gr.Group():
51
  with gr.Row():
52
  transcript_ugArab_box = gr.Textbox(
53
- label="ASR Transcript (Uyghur Arabic)",
54
- placeholder="Automatic transcription of your audio..."
55
  )
56
  with gr.Row():
57
  transcript_ugLatn_box = gr.Textbox(
58
- label="ASR Transcript (Uyghur Latin)",
59
- placeholder="Automatic transcription of your audio..."
60
  )
61
 
62
  # Group correct and user pronunciation
 
20
  # Input Column
21
  with gr.Column(scale=1):
22
  with gr.Row():
23
+ script_choice = gr.Dropdown(
24
+ choices=["Uyghur Arabic", "Uyghur Latin"],
25
+ label="1. Select Input Script",
26
+ value="Uyghur Arabic",
27
+ interactive=True
28
+ )
29
+ with gr.Row():
30
+ input_text = gr.Textbox(
31
+ label="2. Input Uyghur Text to Pronounce",
32
+ placeholder="Enter Uyghur text here...",
33
+ )
34
  with gr.Row():
35
  example_audio = gr.Audio(label="3. Click Generate Example Pronunciation")
36
  with gr.Row():
 
50
  with gr.Group():
51
  with gr.Row():
52
  transcript_ugArab_box = gr.Textbox(
53
+ label="Transcript (Uyghur Arabic)",
54
+ placeholder="ASR transcription of your audio..."
55
  )
56
  with gr.Row():
57
  transcript_ugLatn_box = gr.Textbox(
58
+ label="Transcript (Uyghur Latin)",
59
+ placeholder="ASR transcription of your audio..."
60
  )
61
 
62
  # Group correct and user pronunciation