hunterschep commited on
Commit
0ba73d2
·
verified ·
1 Parent(s): a090817
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -158,7 +158,7 @@ with gr.Blocks(css="""
158
  gr.Markdown("<h1 class='header'>ASR Demo with Editable Transcription</h1>")
159
 
160
  # Step 1: Audio Upload & Transcription
161
- with gr.Box(elem_classes="section"):
162
  gr.Markdown("### Step 1: Audio Upload & Transcription")
163
  with gr.Row(elem_classes="gradio-row"):
164
  audio_input = gr.Audio(sources=["upload", "microphone"], type="filepath", label="Audio Input")
@@ -166,21 +166,21 @@ with gr.Blocks(css="""
166
  proc_time_state = gr.State()
167
 
168
  # Step 2: Review & Edit Transcription
169
- with gr.Box(elem_classes="section"):
170
  gr.Markdown("### Step 2: Review & Edit Transcription")
171
  with gr.Row(elem_classes="gradio-row"):
172
  original_text = gr.Textbox(label="Original Transcription", interactive=False, lines=5, placeholder="Transcription will appear here...")
173
  corrected_text = gr.Textbox(label="Corrected Transcription", interactive=True, lines=5, placeholder="Edit transcription here...")
174
 
175
  # Step 3: User Information
176
- with gr.Box(elem_classes="section"):
177
  gr.Markdown("### Step 3: User Information")
178
  with gr.Row(elem_classes="gradio-row"):
179
  age_input = gr.Slider(minimum=0, maximum=100, step=1, label="Age", value=25)
180
  native_speaker_input = gr.Checkbox(label="Native Amis Speaker", value=True)
181
 
182
  # Step 4: Save & Download
183
- with gr.Box(elem_classes="section"):
184
  gr.Markdown("### Step 4: Save & Download")
185
  with gr.Row(elem_classes="button-row"):
186
  save_button = gr.Button("Save Correction to Database", variant="primary")
 
158
  gr.Markdown("<h1 class='header'>ASR Demo with Editable Transcription</h1>")
159
 
160
  # Step 1: Audio Upload & Transcription
161
+ with gr.Row(elem_classes="section"):
162
  gr.Markdown("### Step 1: Audio Upload & Transcription")
163
  with gr.Row(elem_classes="gradio-row"):
164
  audio_input = gr.Audio(sources=["upload", "microphone"], type="filepath", label="Audio Input")
 
166
  proc_time_state = gr.State()
167
 
168
  # Step 2: Review & Edit Transcription
169
+ with gr.Row(elem_classes="section"):
170
  gr.Markdown("### Step 2: Review & Edit Transcription")
171
  with gr.Row(elem_classes="gradio-row"):
172
  original_text = gr.Textbox(label="Original Transcription", interactive=False, lines=5, placeholder="Transcription will appear here...")
173
  corrected_text = gr.Textbox(label="Corrected Transcription", interactive=True, lines=5, placeholder="Edit transcription here...")
174
 
175
  # Step 3: User Information
176
+ with gr.Row(elem_classes="section"):
177
  gr.Markdown("### Step 3: User Information")
178
  with gr.Row(elem_classes="gradio-row"):
179
  age_input = gr.Slider(minimum=0, maximum=100, step=1, label="Age", value=25)
180
  native_speaker_input = gr.Checkbox(label="Native Amis Speaker", value=True)
181
 
182
  # Step 4: Save & Download
183
+ with gr.Row(elem_classes="section"):
184
  gr.Markdown("### Step 4: Save & Download")
185
  with gr.Row(elem_classes="button-row"):
186
  save_button = gr.Button("Save Correction to Database", variant="primary")