owaski commited on
Commit
5389f8b
·
1 Parent(s): 5c51862

modified UI

Browse files
Files changed (1) hide show
  1. app.py +35 -32
app.py CHANGED
@@ -527,44 +527,47 @@ with gr.Blocks(
527
  (https://github.com/siddhu001/espnet/tree/sds_demo_recipe/egs2/TEMPLATE/sds1#how-to-use).
528
  """
529
  )
530
- input_text = gr.Textbox(
531
- label="LLM prompt",
532
- visible=True,
533
- interactive=True,
534
- value=default_instruct,
535
- )
536
  with gr.Row():
537
- type_radio = gr.Radio(
538
- choices=["Cascaded"],
539
- label="Choose type of Spoken Dialog:",
540
- value="Cascaded",
541
- )
542
- ASR_radio = gr.Radio(
543
- choices=ASR_options,
544
- label="Choose ASR:",
545
- value=ASR_name,
546
- )
547
- LLM_radio = gr.Radio(
548
- choices=LLM_options,
549
- label="Choose LLM:",
550
- value=LLM_name,
551
- )
552
- with gr.Column(scale=0.5):
553
- radio = gr.Radio(
554
- choices=TTS_display_names,
555
- label="Choose TTS:",
556
- value=TTS_reverse_map[TTS_name],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
557
  )
558
- E2Eradio = gr.Radio(
559
- choices=["mini-omni"],
560
- label="Choose E2E model:",
561
- value="mini-omni",
562
- visible=False,
563
- )
564
  gr.Examples(
565
  examples=[[row[1], row[2]] for row in examples],
566
  inputs=[input_text, radio],
567
  label="Usage examples",
 
568
  )
569
  with gr.Row():
570
  with gr.Column(scale=1):
 
527
  (https://github.com/siddhu001/espnet/tree/sds_demo_recipe/egs2/TEMPLATE/sds1#how-to-use).
528
  """
529
  )
 
 
 
 
 
 
530
  with gr.Row():
531
+ with gr.Column(scale=1):
532
+ input_text = gr.Textbox(
533
+ label="LLM prompt",
534
+ visible=True,
535
+ interactive=True,
536
+ value=default_instruct,
537
+ )
538
+ with gr.Column(scale=1):
539
+ type_radio = gr.Radio(
540
+ choices=["Cascaded"],
541
+ label="Choose type of Spoken Dialog:",
542
+ value="Cascaded",
543
+ )
544
+ ASR_radio = gr.Radio(
545
+ choices=ASR_options,
546
+ label="Choose ASR:",
547
+ value=ASR_name,
548
+ )
549
+ LLM_radio = gr.Radio(
550
+ choices=LLM_options,
551
+ label="Choose LLM:",
552
+ value=LLM_name,
553
+ )
554
+ with gr.Column(scale=0.5):
555
+ radio = gr.Radio(
556
+ choices=TTS_display_names,
557
+ label="Choose TTS:",
558
+ value=TTS_reverse_map[TTS_name],
559
+ )
560
+ E2Eradio = gr.Radio(
561
+ choices=["mini-omni"],
562
+ label="Choose E2E model:",
563
+ value="mini-omni",
564
+ visible=False,
565
  )
 
 
 
 
 
 
566
  gr.Examples(
567
  examples=[[row[1], row[2]] for row in examples],
568
  inputs=[input_text, radio],
569
  label="Usage examples",
570
+ example_labels=[row[0] for row in examples],
571
  )
572
  with gr.Row():
573
  with gr.Column(scale=1):