staraks commited on
Commit
e330361
Β·
verified Β·
1 Parent(s): 4d24db2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -403,7 +403,7 @@ with gr.Blocks(title="Whisper Transcriber β€” Beautiful UI", css=CSS) as demo:
403
  # Left: controls
404
  with gr.Column(scale=1):
405
  gr.Markdown("### Quick Single Audio Transcribe")
406
- with gr.Box(elem_classes="card"):
407
  single_audio = gr.Audio(label="Upload or record audio", type="filepath")
408
  with gr.Row():
409
  model_select = gr.Dropdown(choices=["small","medium","large","large-v3","base"], value="large-v3", label="Model")
@@ -416,14 +416,14 @@ with gr.Blocks(title="Whisper Transcriber β€” Beautiful UI", css=CSS) as demo:
416
 
417
  # Right: player + transcript
418
  with gr.Column(scale=1):
419
- with gr.Box(elem_classes="card audio-player-card"):
420
  gr.Markdown("### Preview & Player")
421
  audio_preview = gr.Audio(label="Player", interactive=False)
422
  gr.HTML("<div style='height:8px'></div>")
423
  gr.Markdown("<div class='small-muted'>Use the player to preview. Click Transcribe to generate the cleaned transcript on the right.</div>")
424
 
425
  gr.Markdown("<div style='height:12px'></div>")
426
- with gr.Box(elem_classes="card"):
427
  gr.Markdown("### Transcript")
428
  transcript_out = gr.Textbox(label="", lines=12, interactive=False, elem_classes="transcript-area")
429
  transcript_logs = gr.Textbox(label="Logs", lines=6, interactive=False)
@@ -446,7 +446,7 @@ with gr.Blocks(title="Whisper Transcriber β€” Beautiful UI", css=CSS) as demo:
446
  with gr.TabItem("Batch Transcribe πŸ“¦"):
447
  with gr.Row():
448
  with gr.Column(scale=1):
449
- with gr.Box(elem_classes="card"):
450
  gr.Markdown("### Batch upload or ZIP")
451
  batch_files = gr.File(label="Upload audio files (multiple)", file_count="multiple", type="filepath")
452
  batch_zip = gr.File(label="Or upload ZIP (optional)", file_count="single", type="filepath")
@@ -460,7 +460,7 @@ with gr.Blocks(title="Whisper Transcriber β€” Beautiful UI", css=CSS) as demo:
460
  batch_select = gr.CheckboxGroup(choices=[], label="Select extracted files (optional)")
461
  batch_trans_btn = gr.Button("Start Batch Transcription", elem_classes="btn-primary")
462
  with gr.Column(scale=1):
463
- with gr.Box(elem_classes="card"):
464
  gr.Markdown("### Batch Output")
465
  batch_trans_out = gr.Textbox(label="Transcript (combined)", lines=18, interactive=False)
466
  batch_logs = gr.Textbox(label="Logs", lines=10, interactive=False)
@@ -514,7 +514,7 @@ with gr.Blocks(title="Whisper Transcriber β€” Beautiful UI", css=CSS) as demo:
514
  with gr.TabItem("Memory 🧠"):
515
  with gr.Row():
516
  with gr.Column(scale=1):
517
- with gr.Box(elem_classes="card"):
518
  gr.Markdown("### Correction Memory")
519
  mem_upload = gr.File(label="Import memory (JSON or text)", file_count="single", type="filepath")
520
  mem_import_btn = gr.Button("Import Memory")
@@ -605,7 +605,7 @@ with gr.Blocks(title="Whisper Transcriber β€” Beautiful UI", css=CSS) as demo:
605
  with gr.TabItem("Fine-tune βš™οΈ"):
606
  with gr.Row():
607
  with gr.Column(scale=1):
608
- with gr.Box(elem_classes="card"):
609
  gr.Markdown("### Prepare & Launch Fine-tune")
610
  ft_upload = gr.File(label="Upload dataset ZIP (optional)", file_count="single", type="filepath")
611
  ft_include_old = gr.Checkbox(label="Include old audio+transcript folder", value=False)
 
403
  # Left: controls
404
  with gr.Column(scale=1):
405
  gr.Markdown("### Quick Single Audio Transcribe")
406
+ with gr.Group(elem_classes="card"):
407
  single_audio = gr.Audio(label="Upload or record audio", type="filepath")
408
  with gr.Row():
409
  model_select = gr.Dropdown(choices=["small","medium","large","large-v3","base"], value="large-v3", label="Model")
 
416
 
417
  # Right: player + transcript
418
  with gr.Column(scale=1):
419
+ with gr.Group(elem_classes="card audio-player-card"):
420
  gr.Markdown("### Preview & Player")
421
  audio_preview = gr.Audio(label="Player", interactive=False)
422
  gr.HTML("<div style='height:8px'></div>")
423
  gr.Markdown("<div class='small-muted'>Use the player to preview. Click Transcribe to generate the cleaned transcript on the right.</div>")
424
 
425
  gr.Markdown("<div style='height:12px'></div>")
426
+ with gr.Group(elem_classes="card"):
427
  gr.Markdown("### Transcript")
428
  transcript_out = gr.Textbox(label="", lines=12, interactive=False, elem_classes="transcript-area")
429
  transcript_logs = gr.Textbox(label="Logs", lines=6, interactive=False)
 
446
  with gr.TabItem("Batch Transcribe πŸ“¦"):
447
  with gr.Row():
448
  with gr.Column(scale=1):
449
+ with gr.Group(elem_classes="card"):
450
  gr.Markdown("### Batch upload or ZIP")
451
  batch_files = gr.File(label="Upload audio files (multiple)", file_count="multiple", type="filepath")
452
  batch_zip = gr.File(label="Or upload ZIP (optional)", file_count="single", type="filepath")
 
460
  batch_select = gr.CheckboxGroup(choices=[], label="Select extracted files (optional)")
461
  batch_trans_btn = gr.Button("Start Batch Transcription", elem_classes="btn-primary")
462
  with gr.Column(scale=1):
463
+ with gr.Group(elem_classes="card"):
464
  gr.Markdown("### Batch Output")
465
  batch_trans_out = gr.Textbox(label="Transcript (combined)", lines=18, interactive=False)
466
  batch_logs = gr.Textbox(label="Logs", lines=10, interactive=False)
 
514
  with gr.TabItem("Memory 🧠"):
515
  with gr.Row():
516
  with gr.Column(scale=1):
517
+ with gr.Group(elem_classes="card"):
518
  gr.Markdown("### Correction Memory")
519
  mem_upload = gr.File(label="Import memory (JSON or text)", file_count="single", type="filepath")
520
  mem_import_btn = gr.Button("Import Memory")
 
605
  with gr.TabItem("Fine-tune βš™οΈ"):
606
  with gr.Row():
607
  with gr.Column(scale=1):
608
+ with gr.Group(elem_classes="card"):
609
  gr.Markdown("### Prepare & Launch Fine-tune")
610
  ft_upload = gr.File(label="Upload dataset ZIP (optional)", file_count="single", type="filepath")
611
  ft_include_old = gr.Checkbox(label="Include old audio+transcript folder", value=False)